[antlr-interest] OPEN, EOF ambiguity
Cameron Ross
cross at kojeware.com
Thu Apr 8 12:33:34 PDT 2010
Hi,
I have a grammar with an ambiguity that I just can't resolve. When I check
the grammar using AntlrWorks I get the following: "Decision can match input
such as "{EOF, OPEN}" using multiple alternatives: 1, 2". I've attached a
screen grab of the syntax diagram generated by AntrlWorks. I don't
understand why ANLTR is thinking that EOF is ambiguous with OPEN. I've
checked the grammar and clif_file is the only rule that is not referenced
from within the grammar, so I don't think that ANLTR should see module as a
start rule. Any help is much appreciated.
Cameron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open_eof_ambiguity.png
Type: image/png
Size: 19807 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20100408/2ad240d0/attachment.png
More information about the antlr-interest
mailing list