How to get ANTLR 3.2 to exit upon first error?
Posted
by Dan Becker
on Stack Overflow
See other posts from Stack Overflow
or by Dan Becker
Published on 2010-03-15T03:58:25Z
Indexed on
2010/03/15
7:09 UTC
Read the original article
Hit count: 334
antlr
|error-handling
In section 10.4, The Definitive ANTLR reference tells you to override mismatch() & recoverFromMismatchedSet() if you want to exit upon the first parsing error. But, at least in ANTLR 3.2, it appears that there is no mismatch() method, and the recoverFromMismatchedSet() documentation says that it is "Not Currently Used". So it appears things have changed since the book was published.
What am I supposed to do instead to exit upon the first parsing error in ANTLR 3.2?
© Stack Overflow or respective owner