[antlr-interest] Changing positions in AST
ManimuthuLakshmi Pitchaikani
antlr_lakshmi at yahoo.com
Thu Oct 7 13:34:03 PDT 2004
Thanks Bryan. I got it.
Bryan Ewbank <ewbank at synopsys.com> 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?
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20041007/78768a88/attachment.html
More information about the antlr-interest
mailing list