Exemplo n.º 1
0
 public Token(string value, int origin, TokenType tokenType)
 {
     Value = value;
     Origin = origin;
     TokenType = tokenType;
     _hashCode = ComputeHashCode();
 }
Exemplo n.º 2
0
 public DfaLexeme(IDfaState dfaState, TokenType tokenType)
 {
     _capture = new StringBuilder();
     _currentState = dfaState;
     TokenType = tokenType;
 }
Exemplo n.º 3
0
 public GrammarLexerRule(TokenType tokenType, IGrammar grammar)
     : base(GrammarLexerRuleType, tokenType)
 {
     Grammar = grammar;
 }
Exemplo n.º 4
0
 public StringLiteralLexerRule(string literal, TokenType tokenType)
 {
     Literal = literal;
     TokenType = tokenType;
 }
Exemplo n.º 5
0
 public DfaLexerRule(IDfaState state, TokenType tokenType)
     : base(DfaLexerRuleType, tokenType)
 {
     Start = state;
 }
Exemplo n.º 6
0
 public DfaLexerRule(IDfaState state, TokenType tokenType)
 {
     Start = state;
     TokenType = tokenType;
 }
Exemplo n.º 7
0
 public TerminalLexerRule(ITerminal terminal, TokenType tokenType)
     : base(TerminalLexerRuleType, tokenType)
 {
     Terminal = terminal;
 }
Exemplo n.º 8
0
 protected BaseLexerRule(LexerRuleType lexerRuleType, TokenType tokenType)
 {
     _lexerRuleType = lexerRuleType;
     _tokenType = tokenType;
 }
Exemplo n.º 9
0
 public StringLiteralLexerRule(string literal, TokenType tokenType)
     : base(StringLiteralLexerRuleType, tokenType)
 {
     Literal = literal;
 }
Exemplo n.º 10
0
 public StringLiteralLexeme(string literal, TokenType tokenType)
 {
     Literal = literal;
     TokenType = tokenType;
     _capture = new StringBuilder();
 }
Exemplo n.º 11
0
 public TerminalLexerRule(ITerminal terminal, TokenType tokenType)
 {
     Terminal = terminal;
     TokenType = tokenType;
 }
Exemplo n.º 12
0
 public GrammarLexerRule(TokenType tokenType, IGrammar grammar)
 {
     Grammar = grammar;
     TokenType = tokenType;
 }
Exemplo n.º 13
0
 public TerminalLexeme(ITerminal terminal, TokenType tokenType)
     : this(new TerminalLexerRule(terminal, tokenType))
 {
 }
Exemplo n.º 14
0
 public TerminalLexeme(ITerminal terminal, TokenType tokenType)
 {
     Terminal = terminal;
     TokenType = tokenType;
     Capture = string.Empty;
 }
Exemplo n.º 15
0
 public ParseEngineLexeme(IParseEngine parseEngine, TokenType tokenType)
 {
     TokenType = tokenType;
     _capture = new StringBuilder();
     _parseEngine = parseEngine;
 }