[antlr-interest] Operators and rewrite rules equivalence

Aurélien LARIVE aurelien.larive at 4dconcept.fr
Mon Jan 11 07:46:39 PST 2010


Hi,

I successfully buit an AST using the operators notation (^) but I need 
to customize a bit my AST construction. Could someone tell me what's the 
rewrite rules version of the following rule ?

andexpression
    : notexpression ( AND^ notexpression )*
    ;

I found a similar example at 
http://www.antlr.org/wiki/display/ANTLR3/Tree+construction but I failed 
to apply this to my problem.

Thanks in advance,

--
Aurélien


More information about the antlr-interest mailing list