[antlr-interest] Default recovery code in tree grammars
Richard Thrippleton
richard.thrippleton at progress.com
Wed Jun 30 06:38:24 PDT 2010
In parser grammars, ANTLR generates some default error-recovery code that I
don't override, because it's moderately good and better than bailing out on
the first error.
However, for tree grammars I've seen ANTLR generate similar error-recovery
code to try to recover from malformed trees. I override this as I've seen
statements (that I absolutely agree with) that any kind of automatic
recovery from walking a malformed tree is folly. With that said, why does
ANTLR generate any kind of recovery code at all for this kind of grammar?
Richard
--
\o/
More information about the antlr-interest
mailing list