Example #1
0
 private void Test(string str, params LexemType[] types)
 {
     var lexer = new LensLexer(str);
     Assert.AreEqual(types, lexer.Lexems.Select(l => l.Type).ToArray());
 }
Example #2
0
 protected static IEnumerable<NodeBase> Parse(string source)
 {
     var lexer = new LensLexer(source);
     var parser = new LensParser(lexer.Lexems);
     return parser.Nodes;
 }