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