[antlr-interest] Is ANTLR Hallucinating?

Randall R Schulz rschulz at sonic.net
Mon Jun 25 11:33:36 PDT 2007


Hi,

I have this production in an ANTLR grammar:

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?


Randall Schulz


More information about the antlr-interest mailing list