[antlr-interest] How do I get a package statement into the generated java files?
gudnabrsam at yahoo.com
Mon Jun 21 13:11:23 PDT 2004
IIRC it's something simple like you stick a Java-style
package declaration at or near the top of your grammar
<clay.douglass at conformative.com> wrote:
> How do I get extra code .e.g. a package statement
> into the generated
> Java files from the .g file? I've been using
> jflex/cup and am used
> to having specific block where I can write code that
> is just copied
> into the generated Java files. I have searched
> on-line and in the
> documentation for "package" in relation to ANTLR but
> did not come up
> with any matches that answered this basic question.
> I also looked
> at a couple examples but, probably because they were
> simple, did not
> obviously place the generated code into a package.
> Sorry to be asking such a newbie question. I added
> stuff to my ant
> script to stick it the package statement in figuring
> I'd eventually
> run across the answer as I read the doc's but I
> haven't yet.
> Yahoo! Groups Links
> antlr-interest-unsubscribe at yahoogroups.com
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
Yahoo! Groups Links
<*> To visit your group on the web, go to:
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
More information about the antlr-interest