[antlr-interest] Understanding AST
Andre Arpin
arpin at kingston.net
Mon Mar 14 12:43:16 PST 2005
If I turn off the standard tree construction in expr, I am not able to
create the same tree as the one created with tree construction enable.
This is probably simple but I just cannot solve it. I would really
appreciate any suggestion.
expr!
: mexpr ((PLUS^ | MINUS^) b:mexpr)*
;
mexpr
: atom ((STAR^ | SOLIDUS^) atom)*
;
atom: INT
| LPAREN! expr RPAREN!
;
André
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 11/03/2005
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050314/799f61b8/attachment.html
More information about the antlr-interest
mailing list