[antlr-interest] NPE at DefineGrammarItemsWalker.java:94

Bart Kiers bkiers at gmail.com
Mon Mar 28 09:26:04 PDT 2011


On Mon, Mar 28, 2011 at 5:58 PM, J. Talafous <jtalafous at gmail.com> wrote:

> Why am I getting an NPE on the following test grammar?  Thanks.
> I am having a hard time getting the @header into my grammar without
> getting a NPE error.  What am I doing wrong?  Thanks for the help.
>
>
For ANTLR 3.x, the following order should be held:

grammar GrammarName;

options { ... }

tokens { ... }

@header { ... }

@members { ... }

parser/lexer rules ...


Regards,

Bart.


More information about the antlr-interest mailing list