[Ometa] First pass at OMeta in OMeta2

Frank Shearar frank.shearar at angband.za.org
Thu Jun 4 01:57:10 PDT 2009


Frank Shearar wrote:
> I have implemented a first pass at an OMeta2 grammar of the legacy 
> OMeta. (Yes, I am too lazy to convert by hand my several hundred rule 
> Delphi grammar!)
<snip>
> Like I say, it's a first pass. I've tested it against random rules in 
> my Delphi grammar, but I've not attempted exhaustive testing. That's 
> the next step.
Of course, I find this stuff just after releasing the code.

OMeta treats symbols differently to OMeta2: OMeta2's symbolLiteral rule 
doesn't match #'foo' where OMeta's symbol does.

Also, OMeta1RuleParser produces stuff like {#App. #exactly. {#App. 
#exactly.  'foo'}} instead of {#App. #exactly. 'foo'}. That's easy to 
fix though.

frank



More information about the OMeta mailing list