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