[antlr-interest] ANTLRWork freez

Robin Davies rerdavies at rogers.com
Wed Jun 13 06:20:53 PDT 2007


I had a freeze in ANtlrWorks that went away when I increased the available 
memory for the Java VM:

   C:\Windows\System32\java.exe -Xmx1500000000 -jar 
C:\Users\Robin\antlrworks-1.0.2.jar

Maybe try that.

----- Original Message ----- 
From: "Fabio Maulo" <fabiomaulo at gmail.com>
To: "ANTLR Interest" <antlr-interest at antlr.org>
Sent: Tuesday, June 12, 2007 1:22 AM
Subject: Re: [antlr-interest] ANTLRWork freez


Terence Parr escribió:
>
> On Jun 10, 2007, at 11:10 PM, Fabio Maulo wrote:
>
>> I wrote the attached grammar using ANTLRWorks but now I can't work with 
>> it.
>> It is a partial grammar but i can't test any rules, can't debug it and, 
>> some times, i can't use the editor....
>>
>> Any idea ?
>
> Try tacking the issues one by one.  There are a number of errors in the 
> grammar I believe:
>
>
> ANTLR Parser Generator  Version 3.0 (May 17, 2007)  1989-2007
> warning(205): T.g:167:4: ANTLR could not analyze this decision in rule 
> booleanFactor; often this is because of recursive rule references visible 
> from the left edge of alternatives.  ANTLR will re-analyze the decision 
> with a fixed lookahead of k=1.  Consider using "options {k=1;}" for that 
> decision and possibly adding a syntactic predicate.
> warning(205): T.g:175:3: ANTLR could not analyze this decision in rule 
> booleanPrimary; often this is because of recursive rule references visible 
> from the left edge of alternatives.  ANTLR will re-analyze the decision 
> with a fixed lookahead of k=1.  Consider using "options {k=1;}" for that 
> decision and possibly adding a syntactic predicate.
> warning(205): T.g:175:3: ANTLR could not analyze this decision in rule 
> booleanPrimary; often this is because of recursive rule references visible 
> from the left edge of alternatives.  ANTLR will re-analyze the decision 
> with a fixed lookahead of k=1.  Consider using "options {k=1;}" for that 
> decision and possibly adding a syntactic predicate.
> ...
Probally recursive rules, in some cases, freez ANTLRW.

I don't know if Jean can use the attached grammar to test some of my
problems using ANTLRW.

Thanks to all.
Bye.
Fabio.



More information about the antlr-interest mailing list