[antlr-interest] NullPointerException in org.antlr.runtime.BaseRecognizer.memoize

Aaron Armstrong ae.armstrong at gmail.com
Tue Feb 19 14:23:45 PST 2008


I took the supplied java grammar and tried to make a parse tree out of a
very small program.  I used ANTLRWorks with the –debug flag to generate the
parser and lexer code.  When I ran my test code, I got a
NullPointerException:

Exception in thread "main" java.lang.NullPointerException
            at org.antlr.runtime.BaseRecognizer.memoize(BaseRecognizer.java
:741)
            at JavaParser.compilationUnit(JavaParser.java:367)
            cont'd…

Has this been encountered before by anyone?  Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080219/5f54cbf9/attachment.html 


More information about the antlr-interest mailing list