[antlr-interest] ANTLRWork freez
Fabio Maulo
fabiomaulo at gmail.com
Mon Jun 11 22:22:57 PDT 2007
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