[antlr-interest] Runtime BaseRecognizer error

Adam Cooney ad_cooney at hotmail.com
Tue Apr 15 15:54:14 PDT 2008


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 2Exception 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 .
_________________________________________________________________
Get Hotmail on your mobile. Text MSN to 63463 now!
http://mobile.uk.msn.com/pc/mail.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080415/3966b4f9/attachment.html 


More information about the antlr-interest mailing list