How to get ANTLR 3.2 to exit upon first error?
- by Dan Becker
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?