[antlr-interest] Bug: String constant is too big in Parser generated by ANTLR v4

Terence Parr parrt at cs.usfca.edu
Wed Jan 11 17:31:59 PST 2012


thanks…wondering if this would come up.  Wow. big grammar?
Ter
On Jan 11, 2012, at 5:22 PM, Christian wrote:

> Hi everybody and especially Terence!
> 
> I get the following error message from Eclipse after ANTLR v4 has
> generated the parser in Java:
> 
>    The type generates a string that requires more than 65535 bytes to
> encode in Utf8 format in the constant pool.
> 
> I think this is due to your _serializedATN string. Could you dynamically
> build it with a StringBuilder perhaps? If you fix it, apply the same
> solution to the lexer please.
> 
> Regards,
> Christian
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list