[antlr-interest] Conversion timeout and non-reproducible warnings

Jim Idle jimi at temporal-wave.com
Mon Sep 14 16:57:49 PDT 2009


On 09/14/2009 04:31 PM, David-Sarah Hopwood wrote:
> Jim Idle wrote:
>    
>> If you are sure that the messages are not correct and the lexer rules
>> are not ambiguous, then you probably need to increase the conversion
>> timeout:
>>
>> -Xconversiontimeout 30000
>>      
> Ah. I had not realised that this was a wall clock timeout. Perhaps that
> explains why I occasionally get non-reproducible warnings when ANTLRWorks
> is running slowly due to Windows being low on memory.
>
> Perhaps the "timeout" should be based on some measure of work done rather
> than wall clock time. That would at least ensure reproducibility for a
> given grammar and ANTLR version.
>
> I assume the units are milliseconds, but
> <http://www.antlr.org/wiki/display/ANTLR3/Command+line+options>
> does not document that, or what the default is.
>
>    
Yes - milliseconds. It is that way because JVMs did not have the ability 
to report CPU execution times. Perhaps there is a generic way in later 
JVMs - we can look I guess ;-)

Jim


More information about the antlr-interest mailing list