[antlr-interest] grammar checking/compilation fails on Windows but not on Linux
Sam Barnett-Cormack
s.barnett-cormack at lancaster.ac.uk
Wed Mar 25 09:39:35 PDT 2009
Filipe David Manana wrote:
> What do you mean with -X flag conversiontimeout?
Try java org.antlr.Tool -X
Or replace that with however you normally run the tool, remove any
input/output options, and add -X - but it's an argument to the tool,
*not* to Java itself.
Sam
> 2009/3/25 Jim Idle <jimi at temporal-wave.com <mailto:jimi at temporal-wave.com>>
>
> Sam Barnett-Cormack wrote:
>> Filipe David Manana wrote:
>>
>>> Hello,
>>>
>>> I am facing here something weird.
>>>
>>> I have a grammar which compiles fine under Linux (Ubuntu 64 bits, 4GB
>>> ram) and passes the grammar checking performed by AntlrWorks. (not even
>>> a single warning)
>>>
>>> On a Windows XP machine (32bits, 3GB ram) both the compilation and
>>> checking fail.
>>>
>>> The grammar file is accessible from
>>> http://code.google.com/p/jsdet/source/browse/trunk/src/grammars/JavaScript.g
>>>
>>> Can somebody tell me if passes on his/her AntlrWorks checking feature?
>>>
>>
> You probably need to set the -X flag conversiontimeout to a higher
> value for your slower machine. The value is an elapsed time because
> the JREs don't allow (or didn't earlier) a measurement of CPU used
> time. Hence on slower machines, a grammar that analyzes correctly on
> a fast machine can bail out on a slow system.
>
> Jim
>
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>
>
>
> --
> Filipe David Manana,
> fdmanana at ieee.org <mailto:fdmanana at ieee.org>
> PGP key - http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC569452B
> <http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC569452B>
>
> "Reasonable men adapt themselves to the world.
> Unreasonable men adapt the world to themselves.
> That's why all progress depends on unreasonable men."
>
>
> ------------------------------------------------------------------------
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
Sam Barnett-Cormack
More information about the antlr-interest
mailing list