[antlr-interest] White spaces within token definition
Jim Idle
jimi at temporal-wave.com
Wed May 7 10:34:26 PDT 2008
You didn't copy the example correctly (please read it carefully):
> -----Original Message-----
>
> COMMAND_EXIT : COMMAND ( ('EXIT') => 'COMMAND'| { $type = COMMAND; }
^ ^^^^^^^^^
>
> O/H Jim Idle έγραψε:
> >
> > COMMAND_EXIT
> >
> > : COMMAND
> >
> > (
> >
> > (' EXIT')=> ' EXIT'
^ ^^^^^^^
Please read up on predicates on the Wiki. I also advise you to buy a copy of the book if you can afford it:
http://www.pragprog.com/titles/tpantlr/the-definitive-antlr-reference
Jim
More information about the antlr-interest
mailing list