[antlr-interest] How do I get a package statement into the generated java files?
Matt Benson
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
file.
-Matt
--- clay_douglass_at_work
<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.
>
> Thanks,
>
> Clay
>
>
>
>
>
> Yahoo! Groups Links
>
>
> antlr-interest-unsubscribe at yahoogroups.com
>
>
>
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list