[antlr-interest] Re: Building trees with the correct associativity
Paul J. Lucas
pauljlucas at mac.com
Thu Dec 2 01:00:51 PST 2004
On Thu, 2 Dec 2004, Monty Zukowski wrote:
> Well, at least that one is easy:
>
> addExpr
> :
> mulExpr ( (PLUS^ | MINUS^) mulExpr)*
> ;
Yes, but I originally wanted to avoid trees like:
ADD_EXPR
|
+
|
3--4
i.e., two levels of depth and instead have:
ADD_EXPR
|
+--3--4
But I've given up so I can get left-associativity easily.
- Paul
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list