protected Accept ( ICharStream input, |
||
input | ICharStream | |
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);
}
}