[antlr-interest] Modify java source code with ANTLR

Terence Parr parrt at cs.usfca.edu
Tue Oct 23 01:27:12 PDT 2007


On Oct 23, 2007, at 3:21 PM, Friedhelm Hellerhoff wrote:

> Austin is right,
>
> I have some own java classes where I want to comment out some of  
> the methods.

Hi. This is pretty easy with a rewrite engine.  Just say engine.delete 
($methodDef.start, $methodDef.stop) when you are in the right method  
to delete. :)  toString the buffer and they will have disappeared.  
voila :)
Ter


More information about the antlr-interest mailing list