[antlr-interest] How to get ANTLR 3.2 to exit upon first error?

Dan Becker db19606 at gmail.com
Mon Mar 15 13:00:59 PDT 2010


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?

Thanks,

Dan
-- 
Dan Becker


More information about the antlr-interest mailing list