Example #1
0
 public void Reset(ITerminalLexerRule terminalLexerRule)
 {
     LexerRule = terminalLexerRule;
     Terminal = terminalLexerRule.Terminal;
     _captureRendered = false;
     _isAccepted = false;
 }
Example #2
0
 public void Reset(ITerminalLexerRule terminalLexerRule, int position)
 {
     LexerRule        = terminalLexerRule;
     Terminal         = terminalLexerRule.Terminal;
     _captureRendered = false;
     _isAccepted      = false;
     Position         = position;
 }
Example #3
0
 public TerminalLexeme(ITerminalLexerRule lexerRule, int position)
 {
     Reset(lexerRule, position);
 }
Example #4
0
 public TerminalLexeme(ITerminalLexerRule lexerRule)
 {
     Reset(lexerRule);
 }
Example #5
0
 public TerminalLexeme(ITerminalLexerRule lexerRule)
     : this(lexerRule.Terminal, lexerRule.TokenType)
 {
 }