[antlr-interest] Building trees with the correct associativity
Paul J. Lucas
pauljlucas at mac.com
Wed Dec 1 18:29:28 PST 2004
On Wed, 1 Dec 2004, Terence Parr wrote:
> Does that loop actually work?
Nope. (D'oh!)
> Setting ## to a new value should wack its old value, right?
Right. In copying from my grammar to an e-mail message, I
goofed. That should read:
addExpr
: e1:mulExpr
(ao:addOp! e2:addExpr!
{
## = #([ADD_EXPR,"ADD_EXPR"], ao, e1, e2);
}
)*
;
However, the same problem still exists. Help!
- 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