[antlr-interest] Building trees with the correct associativity
Terence Parr
parrt at cs.usfca.edu
Wed Dec 1 18:21:40 PST 2004
On Dec 1, 2004, at 6:06 PM, Paul J. Lucas wrote:
> I'm surprised it took me this long to notice I had a problem
> with this, but...
>
> If I have:
>
> addExpr
> : e1:mulExpr
> (ao:addOp! e2:mulExpr!
> {
> ## = #([ADD_EXPR,"ADD_EXPR"], ao, e1, e2);
> }
> )*
> ;
Hi Paul.
Does that loop actually work? Setting ## to a new value should wack
its old value, right?
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
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