[antlr-interest] (no subject)
Pascal Parrot
pascal_parrot at hotmail.com
Wed Nov 14 15:59:41 PST 2012
Hello,
I have a sample grammar (attached) with many keywords. I use a hashmap to store keywords as described in the "definitive antlr 4 reference book" section 10.3 and that "fixed" the _serializedATN string issue (http://www.antlr.org/pipermail/antlr-interest/2012-October/045551.html).
However, I now have a "code too large" error in the generated Parser file.
exampleParser.java:14: code too large
protected static final PredictionContextCache _sharedContextCache =
^
1 error
The parser portion of the file is very basic. What could be the reasons to have an error there? Is there a way to avoid this error?
Thanks,
Pascal
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.g4.zip
Type: application/zip
Size: 40134 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20121114/c1188d89/attachment.zip
More information about the antlr-interest
mailing list