[antlr-interest] Modify java source code with ANTLR
Friedhelm Hellerhoff
fhellerhoff at yahoo.de
Tue Oct 23 05:49:52 PDT 2007
Hi, thanks for the answer.
So how do I have to use this engine, I guess it is the
TokenStreamRewriteEngine? Sorry for my ignorance,
- Friedhelm -
Terence Parr schrieb:
> 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