[antlr-interest] fixed
James Briant
jab.antlr at species.org
Thu Apr 1 10:19:23 PDT 2010
Once I managed to get ANTLR to give me the error message, the problem was
easy to solve. I had these two lines:
| ^(IF parenthesizedExpression statement statement)
| ^(IF parenthesizedExpression statement)
And I just changed it to:
| ^(IF parenthesizedExpression statement statement?)
And now it works fine.
So the problem was definitely an exception in the DFA constructor that was
then caught, but ignored, with no warning or error. Once I forced it to
report the error, I could fix it.
Jamie
More information about the antlr-interest
mailing list