[antlr-interest] Re: Manually creating tree - infinite loop
Edward Povazan
epovazan at telus.net
Thu Nov 6 17:20:19 PST 2003
Thanks Loring,
I'm still new to antlr (in terms of more interesting uses) so sometimes I am
not sure if I am doing things wrong, or interacting with interesting
'features' :)
-Ed
----- Original Message -----
From: "lgcraymer" <lgc at mail1.jpl.nasa.gov>
To: <antlr-interest at yahoogroups.com>
Sent: Thursday, November 06, 2003 3:33 PM
Subject: [antlr-interest] Re: Manually creating tree - infinite loop
> Adding to Monty's comment: What you encountered is a "feature" of
> ANTLR 2.x. ! on a node says "don't incorporate into a tree"; without
> that, ANTLR goes ahead and inserts the node into the tree being built.
> When you then use it for construction in an action, the child and
> sibling pointers have been set and that can cause problems as in your
> example--ANTLR chases pointers until it can find a place to insert
> the node, and you can get the infinite loop behavior that you saw.
>
> This may get fixed in ANTLR 3.
>
> --Loring
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list