[antlr-interest] Simplify tree construction rule

Thomas Trummer th.trummer at gmail.com
Tue Aug 25 13:53:47 PDT 2009


Hi,

is it possible to simplify this rule?

aaa
    :   ('TYPE AAA'   | 'TYPE' 'AAA'  ) ';' -> 'TYPE AAA'
    ;

It basically allows space between TYPE and AAA, but the tree node should
always be "TYPE AAA".


Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090825/752f4fe6/attachment.html 


More information about the antlr-interest mailing list