[antlr-interest] Re: Adding a package declaration to ANTLR-generatedJava code...?

Yawl yong at tenablesecurity.com
Thu Aug 4 08:46:26 PDT 2005

Read the ANTLR document please.



All you need to do is to put this at the beginning of the grammar:

header {
package your.package;

"Josh" <parcour at gmail.com> wrote in message 
news:151f299b05080408384c85733f at mail.gmail.com...
Hi.  I'm new to ANTLR, and am trying to work an ANTLR grammar into my
Maven build.  For that it seems I need to put the generated Java
classes in a package, but so far I haven't come across any info. on
how to do it.  Any tips would be much appreciated. --Josh

More information about the antlr-interest mailing list