[antlr-interest] reference tokens{} in other files

Johannes Luber jaluber at gmx.de
Thu Nov 1 12:32:49 PDT 2007


Michael LeBlanc wrote:
> What is the usual way in v3 to reference the names from a grammar's
> tokens{} construct in the target language?  That is, if I have a token
> SOMETOKEN and my target is Java, how can I reference SOMETOKEN
> unqualified in a hand written Java file?
> 
AFAIK, it should suffice to call a token DUMMY in the target language
also DUMMY.

Johannes


More information about the antlr-interest mailing list