[antlr-interest] ANTRL 3.3
Justin Murray
jmurray at aerotech.com
Fri Dec 10 10:32:44 PST 2010
Yep, you are right. I didn't even notice the decision printout that
occurred before the thousands of conversion lines. Turned out to be a
fairly easy fix once I knew which rule to look at.
Thanks,
Justin
-----Original Message-----
From: Terence Parr [mailto:parrt at cs.usfca.edu]
Sent: Friday, December 10, 2010 12:02 PM
To: Justin Murray
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] ANTRL 3.3
hi. that's telling you to fix the decision associated with that spewing
of conversion notes.
Ter
On Dec 10, 2010, at 6:51 AM, Justin Murray wrote:
> Hello,
>
>
>
> I am currently developing the grammar for a very large language. It
has
> several hundred keywords, and hundreds of syntax permutations in the
> form of commands. The language itself is poorly designed, but we
> unfortunately have to continue to support it. My question involves the
> update to ANTLR v3.3. My grammar file is able to be processed by ANTLR
> v3.2 without any errors, and produces a working output (C target). I
had
> to bump up the java stack size to 64M, and the heap size to 1024M, but
> from what I have read this is fairly common. The processing takes
about
> 15 seconds on average. Yesterday, I decided to try upgrading to ANTLR
> v3.3, but have been unsuccessful. When processing the exact same
grammar
> file, it will spend several minutes consuming one of my cpu cores, and
> then ultimately crash with an outOfMemory exception. I tried
increasing
> the memory further, but it made no difference. I tried using the
> -Xwatchconversion option, but it was not very helpful. It prints out
> thousands of lines like "convert DFA state 4192 (229 nfa states)", but
> never appears to get stuck on a particular line, it just eventually
runs
> out of memory. What has changed in v3.3 that could cause this to
happen?
> What should I try next?
>
>
>
> Thank you,
>
> Justin Murray
> Software Engineer
> jmurray at aerotech.com
>
> Aerotech, Inc.
> 101 Zeta Drive
> Pittsburgh, PA 15238
> 412-963-7470
>
>
>
>
> 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