【已解决】antlr中尝试出错就退出,结果编译parser出错:error: recoverFromMismatchedSet(IntStream,RecognitionException,BitSet) in xxxParser cannot override recoverFromMismatchedSet(IntStream,RecognitionException,BitSet) in BaseRecognizer,return type void is not compatible with Object
crifan 11年前 (2013-09-22) 3136浏览 0评论
【问题】 折腾antlr的异常恢复。 参考: The Definitive ANTLR Reference.pdf 中,添加上对应的代码: @members { protected void mismatch(IntStream input,...