[antlr-interest] Changing positions in AST
Bryan Ewbank
ewbank at synopsys.com
Wed Oct 6 23:12:25 PDT 2004
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20041007/e4ce841f/attachment.html
More information about the antlr-interest
mailing list