[antlr-interest] tree grammar not in default package
Jim Idle
jimi at temporal-wave.com
Wed Nov 24 13:25:44 PST 2010
@header {
package main;
}
But make sure that your @header appears in the correct order within the
grammar.
Jim
> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Arthur Goldberg
> Sent: Wednesday, November 24, 2010 12:10 PM
> To: antlr-interest at antlr.org
> 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
More information about the antlr-interest
mailing list