LexerATNSimulator.java 文件源码

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

项目:Scratch-ApuC 作者:
protected void accept(@NotNull CharStream input, LexerActionExecutor lexerActionExecutor,
                      int startIndex, int index, int line, int charPos)
{
    if ( debug ) {
        System.out.format(Locale.getDefault(), "ACTION %s\n", lexerActionExecutor);
    }

    // seek to after last char in token
    input.seek(index);
    this.line = line;
    this.charPositionInLine = charPos;
    if (input.LA(1) != IntStream.EOF) {
        consume(input);
    }

    if (lexerActionExecutor != null && recog != null) {
        lexerActionExecutor.execute(recog, input, startIndex);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号