示例#1
0
 protected LexerStateBase(IForwardReadSequence <char> sequence, LexerStateBase lastState, IParserSet parsers)
 {
     Sequence   = sequence;
     Parsers    = parsers;
     LastState  = lastState.ToMaybe();
     TokenValue = Maybe <string> .Nothing;
 }
 public SpecialSymbolLexerState(IForwardReadSequence <char> sequence, char c, LexerStateBase lastState, IParserSet parsers) : base(sequence, c, lastState, parsers)
 {
 }
示例#3
0
 protected LexerStateBase(IForwardReadSequence <char> sequence, string token, LexerStateBase lastState, IParserSet parsers) : this(sequence, lastState, parsers)
 {
     TokenValue = token;
 }
示例#4
0
 protected LexerStateBase(IForwardReadSequence <char> sequence, char c, LexerStateBase lastState, IParserSet parsers) : this(sequence, lastState, parsers)
 {
     TokenValue = c.ToString();
 }
示例#5
0
 public InitialLexerState(IForwardReadSequence <char> sequence, LexerStateBase lastState, IParserSet parsers) : base(sequence, lastState, parsers)
 {
 }
 public NumberLexerState(IForwardReadSequence <char> sequence, char c, LexerStateBase lastState, IParserSet parsers) : base(sequence, c, lastState, parsers)
 {
 }
 public SymbolLexerState(IForwardReadSequence <char> sequence, string token, char c, LexerStateBase lastState, IParserSet parsers) : base(sequence, token, c, lastState, parsers)
 {
 }