[antlr-interest] ANTLRWork freez
Terence Parr
parrt at cs.usfca.edu
Mon Jun 11 16:42:42 PDT 2007
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.
...
Ter
More information about the antlr-interest
mailing list