Antlr4ErrorStrategy.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:esper 作者:
public void reportError(Parser recognizer, RecognitionException e) {
    // Antlr has an issue handling LexerNoViableAltException as then offending token can be null
    // Try: "select a.b('aa\") from A"
    if (e instanceof LexerNoViableAltException && e.getOffendingToken() == null) {
        return;
    }
    super.reportError(recognizer, e);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号