[antlr-interest] "code too large" / can't split AST output into smaller files

Gokulakannan Somasundaram gokul007 at gmail.com
Tue Jul 26 23:51:26 PDT 2011


I found the awk script. Just run this on the java file. It will create a new
java file, which won't cause the "code too large bug".  It was working in
ANTLR 3.2, So i think it should work here also.

Gokul.

On Wed, Oct 27, 2010 at 12:38 AM, Red Rackham <redrackem at yahoo.com> wrote:

> I'm having same issue.  Have a big grammar (>900 tokens, >4K lines of
> parser
> grammar) it's translated from an older source and very messy &
> interconnected
> since it was generated by conversion script.  Was able to get ANTLR to
> create
> .java files, but the java files don't compile ("code too large").  With
> python output, the lexer works up to a point but mis-identifies a token and
> I
> haven't figured out why... I wanted to debug in ANTLRWorks but I can't
> since I
> can't get java to compile.  Catch 22?
>
>
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postprocess.awk
Type: application/octet-stream
Size: 4030 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20110727/cc56fe34/attachment.obj 


More information about the antlr-interest mailing list