[antlr-interest] compilation error on grammar
Randall R Schulz
rschulz at sonic.net
Thu Aug 2 17:56:54 PDT 2007
On Thursday 02 August 2007 17:40, Warner Onstine wrote:
> On 8/2/07, Randall R Schulz <rschulz at sonic.net> wrote:
> > On Thursday 02 August 2007 17:01, Kay Roepke wrote:
> > > ...
> > >
> > > You do have a rule called 'package', right?
> >
> > Which is the problem. That renders the Java invalid, since
> > "package" is a Java keyword.
> >
> > Ironically, the parser is not declared in a package, which is no
> > way to handle programming-in-the-large.
>
> Definitely, I know I've seen the option for declaring a package in
> the grammar in one of the examples, but have been unable to find it
> to correct that particular issue.
@header {
package this.that.thenextthing;
...
}
> -warner
Randall Schulz
More information about the antlr-interest
mailing list