[antlr-interest] Memory issue with ANTLR

Jayani Withanawasam jayaniw at ecollege.com
Wed Jun 1 04:54:21 PDT 2011


Thanks Mark,

The issue is the following command seems to be incorrect:

java -cp
"D:\Jay_CC\P4\user\brettp\SQLStandardsChecker\Ecollege\CodeStandards\ext
\ANTLR\lib\antlr-3.3-complete.jar" -Xms32M -Xmx512M org.antlr.Tool
-message-format vs2005 -Xconversiontimeout 30000
"D:\Jay_CC\P4\user\brettp\SQLStandardsChecker\Ecollege\CodeStandards\Par
ser\tsqllexer.g"
"D:\Jay_CC\P4\user\brettp\SQLStandardsChecker\Ecollege\CodeStandards\Par
ser\tsql.g"
"D:\Jay_CC\P4\user\brettp\SQLStandardsChecker\Ecollege\CodeStandards\Par
ser\tsqlwalker.g"

The timeout is set to 30000 here. But how to increase the max heap size
in this command?

Regards,
Jayani.


-----Original Message-----
From: Mark Wright [mailto:markwright at internode.on.net] 
Sent: Wednesday, June 01, 2011 5:18 PM
To: Jayani Withanawasam; antlr-interest at antlr.org
Subject: Re: [antlr-interest] Memory issue with ANTLR

Hi Jayani,

For the timeout issue you need to read the ANTLR documentation to find
out the command line parameter to the antlr tool to increase the
timeout,
the default is too short for complex grammars.

Thanks, Mark


More information about the antlr-interest mailing list