[antlr-interest] Replacing a node with a subtree.
doctlo-antlr at yahoo.com
doctlo-antlr at yahoo.com
Fri Mar 4 10:17:08 PST 2005
When parsing a particular grammar, at one point it
is easier to throw all the text into a string and call a
second parser ie:
rule : .....
{
String text=getText();
AST a= // Do second parse of text
/./ Replace this node with a.
}
The question that I have is how do I accomplish the third line:
Take the node that is being created and replace it with one that I
have created.
Thanks.
More information about the antlr-interest
mailing list