Example #1
0
 private TestParser GetTestParser(string input)
 {
     var lexer = new TestLexer2(input);
     var tokens = lexer.Tokens().ToList();
     var parser = new TestParser();
     parser.Initialize(tokens, lexer);
     return parser;
 }
Example #2
0
        private TestParser GetTestParser(string input)
        {
            var lexer  = new TestLexer2(input);
            var tokens = lexer.Tokens().ToList();
            var parser = new TestParser();

            parser.Initialize(tokens, lexer);
            return(parser);
        }