[antlr-interest] Big grammar => static initializer/method size is exceeding the 65535 bytes limit

Terence Parr parrt at cs.usfca.edu
Wed Nov 4 19:31:56 PST 2009


Hi gang. i'll be taking a hard look at code gen for ANTLR once I  
finish rebuilting ST v4.  That's going very well. An awesome example  
of bytecode compiler/interpreter combo.

Ter
On Nov 5, 2009, at 11:54 AM, David-Sarah Hopwood wrote:

> Jim Idle wrote:
>> I think that the issue is more likely something to do with your  
>> lexer specification.
>> You should not need to worry about having lots of keywords, so one  
>> of the other rules
>> must be causing the huge expansion.
>
> Unfortunately, it seems as though just having lots of keywords is  
> enough by
> itself to cause this problem, especially if the keywords have lots  
> of common
> substrings, as in the case of the grammar posted by Robert Wentworth:
> <http://osdir.com/ml/il-antlr-interest/2009-10/msg00384.html>
> I could not see any other problem with that grammar.
>
> -- 
> David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com
>
>
> 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