> Hi, > I'm using antlr in order to build a javascript code obfuscator. I would > like > to know if it's possible to manipulate the CommonTree using java once the > parsing process is finished. I have already tried to do it but methods > addChild and dupNode throw exceptions. > How can I do it? > thank you in advance. > Marco
You could create your own tree class and use it instead of CommonTree. I suppose deriving from CommonTree is good idea. You have to use in the grammar options "ASTLabelType=ClassName;" to reference the right class. BTW, this is a question for ANTLR-Interest, not for ANTLR-dev. The latter is for target devs only (and those who are interested in following the ANTLR development closely). Johannes -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 _______________________________________________ antlr-dev mailing list [email protected] http://www.antlr.org/mailman/listinfo/antlr-dev
