overriding the function "recoverFromMismatchedToken" fixed my problem! Thank you! -- View this message in context: http://antlr.1301665.n2.nabble.com/How-catch-exception-when-extraneous-input-happens-tp5163385p5164328.html Sent from the ANTLR mailing list archive at Nabble.com.