[antlr-interest] C# generated code refering rules
Johannes Luber
jaluber at gmx.de
Thu Jul 5 03:11:33 PDT 2007
Liviu U wrote:
> Hi guys,
>
> ANTLR generates cryptic names for rules (TokenTypes). T1...T9.
>
> when I check the TreeNode token type it is an integer and I would have
> like to compare it against constant FORLOOP than against T23.
>
> Do i miss something here?
Strange - usually the token type has the the same name as the rule. Are
you looking in the appropriate .tokens file or looking in the generated
source code?
Best regards,
Johannes Luber
More information about the antlr-interest
mailing list