[antlr-interest] Runtime BaseRecognizer error
Johannes Luber
jaluber at gmx.de
Tue Apr 15 16:01:58 PDT 2008
Adam Cooney schrieb:
> Hi,
> when running my grammar file I can compiel the grammar and the
> parser/lexers produced but when I run it I get the following:
>
> !!!!!!!!! memo size is 2, but rule index is 37
> !!!!!!!!! memo size is 2, but rule index is 25
> !!!!!!!!! memo size is 2, but rule index is 23
> !!!!!!!!! memo size is 2, but rule index is 7
> !!!!!!!!! memo size is 2, but rule index is 6
> !!!!!!!!! memo size is 2, but rule index is 3
> !!!!!!!!! memo size is 2, but rule index is 2
> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2
> at org.antlr.runtime.BaseRecognizer.memoize(BaseRecognizer.java:806)
> at JavaParser.compilationUnit(JavaParser.java:565)
> at Test.main(Test.java:30)
>
>
> Anyone know why?
> ps it was previously suggested to change JavaHeapSpace. I changed it to
> 256/512/1024/2048 and it did nothing, I dont think its a processing
> problem .
Do you happen to use a different version of the runtime library than the
ANTLR one you generated the code with?
Johannes
More information about the antlr-interest
mailing list