[antlr-interest] Enhancement request for identifying imaginary tokens

Terence Parr parrt at cs.usfca.edu
Fri Dec 14 09:55:12 PST 2007


OH!  I get it.  Well, I put the [...] ctor args there as you might  
want the 2nd not first token to be payload of imaginary...

e : x=INT op='+' y=INT -> ^(ADD[$op] $x $y );

Ter



More information about the antlr-interest mailing list