[antlr-interest] ANTLR 3.1: memo array is null for JadeSQL.g

Peter Brant peter.brant at gmail.com
Mon Mar 3 08:50:10 PST 2008


Hi all,

When I set memoize=true on a rule, ANTLR (2008-01-23.10) dies with the
following messages and NPE:

!!!!!!!!! memo array is null for JadeSQL.g
!!!!!!!!! memo array is null for JadeSQL.g
!!!!!!!!! memo array is null for JadeSQL.g
java.lang.NullPointerException
        at org.antlr.runtime.BaseRecognizer.memoize(BaseRecognizer.java:801)
        at gov.wicourts.jade.sqlparser2.JadeSQLParser.expression_primary(JadeSQLParser.java:15269)
...

The rule looks like this:

expression_primary
options {
	k=3;
	backtrack=true;
	memoize=true;
	
}
	: subquery
...

It worked in 3.0.1.  Is this a known issue?  I couldn't find it in JIRA.

Thanks,

Pete


More information about the antlr-interest mailing list