[antlr-interest] How to translate this V2 Lexer rule to V3 Lexer rule?

Gavin Lambert antlr at mirality.co.nz
Tue Dec 2 23:24:34 PST 2008


At 19:57 3/12/2008, chain one wrote:
>I noticed that only to remove the '$' in front of getText and 
>setType() would work.
>What a stupid question! : )

It might work, but it's not correct.

The correct syntax is to use $text and $type.



More information about the antlr-interest mailing list