[antlr-interest] Code Generation Concerns

Jim Idle jimi at temporal-wave.com
Wed Mar 23 10:55:38 PDT 2011


Copy the code gen template and take those pieces out.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Kevin Cherry
> Sent: Wednesday, March 23, 2011 10:39 AM
> To: antlr-interest
> Subject: [antlr-interest] Code Generation Concerns
>
> Maybe this is ANTLR Works doing this, but every time code is generated,
> the full file path to my grammar file is displayed in comments
> throughout the entire file (i.e. // dir/dir/file.g put in like 50
> different places all over the class definition). I find this both a
> security and privacy issue if I am making this code available to other
> people. Sure I can delete it, but every time it is regenerated, it
> comes back. There is also a method created for the class that returns a
> string literal with the file path in it. Is there anyway of telling
> ANTLR not to do this?
> Also, is there any way to change the generated class's visibility from
> public to something else?
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list