Loading ...
Sorry, an error occurred while loading the content.

Re: [antlr-interest] Re: Manually creating tree - infinite loop

Expand Messages
  • Edward Povazan
    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
    Message 1 of 5 , Nov 6, 2003
    • 0 Attachment
      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@...>
      To: <antlr-interest@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 message has been successfully submitted and would be delivered to recipients shortly.