[antlr-interest] sql 2003 grammars

Douglas Godfrey douglasgodfrey at gmail.com
Tue Apr 19 16:38:00 PDT 2011


You need to specify the heap size separately for both AntlrWorks and for
Antlr [when it is run by AntlrWorks]

specify -Xms128m -Xmx1G on the Java command line for invoking AntlrWorks

specify -Xms128m -Xmx1G in AntlrWorks::Preferences::General::ANTLR_options

see http://www.antlr.org/jira/browse/ST-68

When AntlrWorks runs out of heap it becomes semi non-responsive [the only
thing that works is scrolling and quit].
Many GUI actions misbehave in odd ways. Typing a character can lock-up
AntlrWorks for 5-10 minutes.

On Mac OS X the maximum supported heap size is 1Gigabyte. On Unix/Linux or
Windows x64 it may be larger.

This SQL 2003 grammar has infinite look-ahead [according to Terrence] in
some of the rules relating to SQL expressions.
The grammar will not generate no matter how much memory you have until the
infinite look-ahead is resolved.

On Mon, Apr 18, 2011 at 3:25 PM, Chris K Wensel <chris at wensel.net> wrote:

> Hi all
>
> I'm playing around with the new SQL 2003 grammars on the website.
>
> There are notes that the antlr tool needs 1024m for the jvm in the grammar,
> i've found i need 4 times that much to get the code generation to not die
> after 40 minutes.
>
> so far the code gen tool has been running for a couple hours using default
> arguments, and I was wondering if anyone knew if this was out of the
> ordinary or not. and if not, how long I should expect it to run.
>
> thanks for any advice!
>
> cheers,
> chris
>
> --
> Chris K Wensel
> chris at wensel.net
> http://chris.wensel.net/
>
>
> 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