[antlr-interest] problem parsing a file
Rajesh Kumar
bradkumar at gmail.com
Fri Jan 12 07:43:17 PST 2007
Hi people,
I am having trouble parsing a file. I am attaching the grammar files
with this email.
I have been using the same grammar for a while and it worked without
any trouble for input files upto size ~60 KB. However, today I tried
parsing an input file that was almost 700 KB and I got this error:
Exception in thread "main" java.lang.StackOverflowError
at antlr.InputBuffer.LA(InputBuffer.java:86)
at antlr.CharScanner.LA(CharScanner.java:166)
at antlr.CharScanner.consume(CharScanner.java:82)
at antlr.CharScanner.matchRange(CharScanner.java:230)
at eolc.EOLCLexer.mLETTER(EOLCLexer.java:667)
at eolc.EOLCLexer.mSTRING(EOLCLexer.java:703)
at eolc.EOLCLexer.nextToken(EOLCLexer.java:162)
at antlr.TokenBuffer.fill(TokenBuffer.java:69)
at antlr.TokenBuffer.LA(TokenBuffer.java:80)
at antlr.LLkParser.LA(LLkParser.java:52)
at eolc.EOLCParser.argument(EOLCParser.java:792)
at eolc.EOLCParser.optional_arguments(EOLCParser.java:756)
at eolc.EOLCParser.atom(EOLCParser.java:731)
at eolc.EOLCParser.literal(EOLCParser.java:300)
at eolc.EOLCParser.labelled_rule(EOLCParser.java:194)
at eolc.EOLCParser.labelled_rule_list_entries(EOLCParser.java:233)
at eolc.EOLCParser.labelled_rule_list_entries(EOLCParser.java:235)
at eolc.EOLCParser.labelled_rule_list_entries(EOLCParser.java:235)
.........................
......................
...................
Is there some option that I need to set. The fact that I have been
using the same grammar file unchanged for sometime makes me think that
there is nothing wrong with the grammar itself.
Any help would be appreciated!
--
Rajesh Kumar
http://www.ece.cmu.edu/~rajeshk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EOLC.g
Type: application/octet-stream
Size: 5010 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20070112/a0016ec0/attachment-0002.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EOLCTreeWalker.g
Type: application/octet-stream
Size: 6963 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20070112/a0016ec0/attachment-0003.obj
More information about the antlr-interest
mailing list