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

RE: [antlr-interest] Changing positions in AST

Expand Messages
  • ManimuthuLakshmi Pitchaikani
    Thanks Bryan. I got it. Bryan Ewbank wrote:To get nodes in the tree out of order , you have to build that part of the tree yourself...
    Message 1 of 3 , Oct 7, 2004
      Thanks Bryan. I got it.

      Bryan Ewbank <ewbank@...> wrote:
      To get nodes in the tree "out of order", you have to build that part of the tree yourself...
       
      Assuming you have the production
       
          tree: node1 node2 node3;
       
      Replace it with something like the following.  The syntax may not be quite right, but it's close...
       
          tree!: node1 node2 node3 { #( #[TREE,"TREE"], #node1, #node3, #node2); }
       
       
      How can i shift the position of node2 to node3?


      Do you Yahoo!?
      vote.yahoo.com - Register online to vote today!
    Your message has been successfully submitted and would be delivered to recipients shortly.