[antlr-interest] tree walking

Andrew Walker anderwalker1983 at googlemail.com
Thu Jul 9 04:49:25 PDT 2009


Hi!
How in the tree grammar can I match the expression like this one:
expr : (INT -> INT) ('+' i=INT -> ^('+' $expr $i) )* ;
or this one:
expr : INT ('+' ^ INT)* ;

I've look through the book but it doesn't cover this part.

Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090709/ce37742c/attachment.html 


More information about the antlr-interest mailing list