[antlr-interest] Tree - Replace nodes in tree

Des Hartman des at deshartman.com
Wed Mar 18 14:52:34 PDT 2009


Is there a way that I can replace nodes in a tree with rewrite? I need to
completely replace the node and its child with a new node and child.
Something like:

LREF NAME -> ^(IREF NUM)

In effect replacing A with 1. I tried the above, but it seems to create a
child node of LREF.


Thanks
Des
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090319/5f9baac1/attachment.html 


More information about the antlr-interest mailing list