Re: [antlr-interest] Re: Manually creating tree - infinite loop
- 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
----- Original Message -----
From: "lgcraymer" <lgc@...>
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.