[antlr-interest] Is ANTLR Hallucinating?

Robin Davies rerdavies at rogers.com
Mon Jun 25 23:25:29 PDT 2007


> clifFile
>  : clText * EOF
>  ;
>
>
> It elicits this error from ANTLR:
>
> warning(200): CLIF.g:1371:4: Decision can match input such as "{EOF, 
> Open}" using multiple alternatives: 1, 2
> As a result, alternative(s) 2 were disabled for that input
> warning(201): CLIF.g:1371:4: The following alternatives are unreachable: 2
>
> Why is it talking about alternatives in a rule that has none?
>

At *, there are two alternatives: do another clText, or don't. Do you have 
EOF in the clText rule?



More information about the antlr-interest mailing list