[antlr-interest] compilation error on grammar

Warner Onstine warnero at gmail.com
Thu Aug 2 17:40:04 PDT 2007


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.

-warner

>
>
> > ...
>
>
> Randall Schulz
>


-- 
Warner Onstine - Programmer/Author
New book on Tapestry 4!
Tapestry 101 available at
http://sourcebeat.com/books/tapestrylive.html
warner at warneronstine.com
http://warneronstine.com/blog


More information about the antlr-interest mailing list