[antlr-interest] Code Generation Concerns

The Researcher researcher0x00 at gmail.com
Wed Mar 23 11:21:54 PDT 2011


On Wed, Mar 23, 2011 at 1:55 PM, Jim Idle <jimi at temporal-wave.com> wrote:

> 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
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>


Just out of curiosity, but wouldn't an OS symbolic  link satisfy the goal
and save the effort or rewriting a file.?

Eric


More information about the antlr-interest mailing list