[antlr-interest] Code too large

Erik Kratochvil discontinuum at gmail.com
Mon Feb 18 04:54:32 PST 2008


I apologize, I should have searched in other threads as well. The
answer is there:

http://www.antlr.org/pipermail/antlr-interest/2008-January/025824.html




On 2/18/08, Erik Kratochvil <discontinuum at gmail.com> wrote:
> Hi.
>
> I have a very complicated grammar that pushes ANTLR 3 to its limits.
> The first thing is that the generated parser has 1.8MB (and I confess
> I tried my best to reduce the size). Well, as soon as I accepted it
> another problem emerged - the parser cannot be compiled. The reason
> is:
>
> > javac OParser.java
>
> OParser.java:37096: code too large
> public static final BitSet FOLLOW_BOM_in_start_rule73 = new BitSet(new
> long[]{0x0000000000000002L,0x0020002000000000
> L,0x000C000040020400L,0x0111000600020220L,0x4000000100000001L,0x0000000180000000L,0x0000000000000000L,0x1300088005000000
> L,0x0000000000000000L,0x0000000000021000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000
> L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000
> L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000
> L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000L,0x0000000000000000
> L,0x0000000000000000L,0x0000000000000000L,0x0000000080001000L});
>                                ^
> 1 error
>
> It is a dead end, isn't it? Is there anything I can do?
>
> --
> Erik Kratochvíl
>


More information about the antlr-interest mailing list