[antlr-interest] [v3] LITERAL_xxx tokens?

Terence Parr parrt at cs.usfca.edu
Tue Aug 15 17:20:23 PDT 2006


On Aug 15, 2006, at 3:47 PM, David Holroyd wrote:

> ANTLR 3 doesn't produce the LITERAL_xxx token type constant  
> definitions
> that v2 did.  Hey, I was using them! :)
>
> Should I define a TOKEN='token' for each than my application needs to
> know about, or is there (going to be) another way?

Yep, literals are rferenced as just 'foo' in tree grammars and  
everwhere.  If you need an identifier, you'll have to create.  What  
do you use them for?
Ter



More information about the antlr-interest mailing list