[antlr-interest] [V3] Null Pointer Exception on bad input containing optional options

John B. Brodie jbb at acm.org
Wed Aug 9 12:47:45 PDT 2006


Greetings!

the following grammar gets a null pointer exception (rather than a
nice error message about its ambiguity):


grammar t;
foo : JUNK* EOF ;
JUNK : 'foo' ( 'bar'? 'baz'? )? ;



did not see anything similar on the wiki's bug list.

is this the best place to report these things?

if it matters, i am using:
ANTLR Parser Generator   Early Access Version 3.0b3 (July 21, 2006)  1989-2006

    -jbb


More information about the antlr-interest mailing list