[antlr-interest] Deleting a Node in Tree Walk

DJB MASTER DJBall05 at hotmail.co.uk
Tue Nov 20 23:22:32 PST 2012


Is there a problem with deleting a node/tree during a tree walk? I want to
find any specific subtrees and get rid of them. I thought this rule would
work...

attribute  : ^(ATTRIBUTE ID ATTR_VALUE) -> ;

I use pattern matching, and I thought this would just erase the tree, but
I'm getting a NullPointerException. Could this be a bug?



--
View this message in context: http://antlr.1301665.n2.nabble.com/Deleting-a-Node-in-Tree-Walk-tp7579294.html
Sent from the ANTLR mailing list archive at Nabble.com.


More information about the antlr-interest mailing list