示例#1
0
文件: CParser.cs 项目: MavenRain/reko
 public CParser(ParserState parserState, CLexer lexer)
 {
     this.ParserState = parserState;
     this.lexer = new LookAheadLexer(
         new CDirectiveLexer(parserState, lexer));
     this.grammar = new CGrammar();
 }
示例#2
0
 private void Lexer(string input)
 {
     var dlexer = new CDirectiveLexer(
         parserState, 
         new CLexer(new StringReader(input)));
     lexer = new LookAheadLexer(dlexer);
 }