Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the Lexer class with the given input
 /// </summary>
 /// <param name="automaton">DFA automaton for this lexer</param>
 /// <param name="terminals">Terminals recognized by this lexer</param>
 /// <param name="separator">SID of the separator token</param>
 /// <param name="input">Input to this lexer</param>
 protected ContextSensitiveLexer(Automaton automaton, Symbol[] terminals, int separator, TextReader input)
     : base(automaton, terminals, separator, input)
 {
     inputIndex = 0;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the Lexer class with the given input
 /// </summary>
 /// <param name="automaton">DFA automaton for this lexer</param>
 /// <param name="terminals">Terminals recognized by this lexer</param>
 /// <param name="separator">SID of the separator token</param>
 /// <param name="input">Input to this lexer</param>
 protected ContextFreeLexer(Automaton automaton, Symbol[] terminals, int separator, TextReader input)
     : base(automaton, terminals, separator, input)
 {
     tokenIndex = -1;
 }