[antlr-interest] tree grammar not in default package

Arthur Goldberg goldberg at cbio.mskcc.org
Wed Nov 24 12:09:34 PST 2010


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



More information about the antlr-interest mailing list