[antlr-interest] White spaces within token definition

Simos Xenitellis simos.lists at googlemail.com
Wed May 7 11:05:09 PDT 2008


O/H Jim Idle έγραψε:
> 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
>   
Many thanks, it worked.
I am looking in getting the book soon.

Cheers,
Simos



More information about the antlr-interest mailing list