Antlr4.Runtime.Atn.LexerATNSimulator.Accept C# (CSharp) Method

Accept() protected method

protected Accept ( ICharStream input, LexerActionExecutor lexerActionExecutor, int startIndex, int index, int line, int charPos ) : void
input ICharStream
lexerActionExecutor LexerActionExecutor
startIndex int
index int
line int
charPos int
return void
        protected void Accept(ICharStream input, LexerActionExecutor lexerActionExecutor,
							  int startIndex, int index, int line, int charPos)
        {
            if (debug)
            {
                Console.WriteLine("ACTION " + lexerActionExecutor);
            }

            // seek to after last char in token
            input.Seek(index);
            this.thisLine = line;
            this.charPositionInLine = charPos;

            if (lexerActionExecutor != null && recog != null)
            {
                lexerActionExecutor.Execute(recog, input, startIndex);
            }
        }