[antlr-interest] labels on chars

Terence Parr parrt at cs.usfca.edu
Fri Nov 3 14:53:10 PST 2006


Hi, in the lexer for v3 when you reference a char, should it be of  
type int or char?

R : a='c' {char foo = $a;} ;

Should $a be an int or char?  Char is more convenient and probably  
correct.  Any issues?  EOF perhaps?

Ter


More information about the antlr-interest mailing list