Copy the code gen template and take those pieces out. Jim
> -----Original Message----- > From: [email protected] [mailto:antlr-interest- > [email protected]] 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 -- You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.
