@header {
package main;
}
But make sure that your @header appears in the correct order within the
grammar.
Jim
> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of Arthur Goldberg
> Sent: Wednesday, November 24, 2010 12:10 PM
> To: [email protected]
> Subject: [antlr-interest] tree grammar not in default package
>
> Hello again
>
> One can put a grammar in Java package 'main' with header {
> package main;
> }
>
> But this doesn't work for a tree grammar, as the grammar compiler says
> > error(100): ../completeOncoPrintSpecASTGenerator.g:10:8: syntax
> error: antlr: ../completeOncoPrintSpecASTGenerator.g:10:8: unexpected
> token:
> > package main;
>
> How does one put a tree grammar in another package?
>
> Regards
> Arthur
>
>
> 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.