Exemplo n.º 1
0
 public CParser(ParserState parserState, CLexer lexer)
 {
     this.ParserState = parserState;
     this.lexer = new LookAheadLexer(
         new CDirectiveLexer(parserState, lexer));
     this.grammar = new CGrammar();
 }
Exemplo n.º 2
0
 private void Lexer(string input)
 {
     var dlexer = new CDirectiveLexer(
         parserState, 
         new CLexer(new StringReader(input)));
     lexer = new LookAheadLexer(dlexer);
 }