public void Reset(ITerminalLexerRule terminalLexerRule) { LexerRule = terminalLexerRule; Terminal = terminalLexerRule.Terminal; _captureRendered = false; _isAccepted = false; }
public void Reset(ITerminalLexerRule terminalLexerRule, int position) { LexerRule = terminalLexerRule; Terminal = terminalLexerRule.Terminal; _captureRendered = false; _isAccepted = false; Position = position; }
public TerminalLexeme(ITerminalLexerRule lexerRule, int position) { Reset(lexerRule, position); }
public TerminalLexeme(ITerminalLexerRule lexerRule) { Reset(lexerRule); }
public TerminalLexeme(ITerminalLexerRule lexerRule) : this(lexerRule.Terminal, lexerRule.TokenType) { }