LexerATNSimulator.java 文件源码

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

项目:Scratch-ApuC 作者:
public int match(@NotNull CharStream input, int mode) {
    match_calls++;
    this.mode = mode;
    int mark = input.mark();
    try {
        this.startIndex = input.index();
        this.prevAccept.reset();
        DFA dfa = decisionToDFA[mode];
        if ( dfa.s0==null ) {
            return matchATN(input);
        }
        else {
            return execATN(input, dfa.s0);
        }
    }
    finally {
        input.release(mark);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号