Esempio n. 1
0
 public ElementBlock Parse(string source, ElementBlock tail)
 {
     var parser = new nLess.LessImpl(source, Console.Out);
     if (!parser.Parse()) throw new ParsingException("FAILURE: Parser did not match input file");
     new TreePrint(Console.Out, source, 60, new NodePrinter(parser).GetNodeName, false)
         .PrintTree(parser.GetRoot(), 0, 0);
     return new TreeBuilder(parser.GetRoot(), source).Build(tail);
 }
Esempio n. 2
0
 public ElementBlock Parse(string source, ElementBlock tail)
 {
     var parser = new nLess.LessImpl(source, Console.Out);
     if (!parser.Parse()) throw new ParsingException("FAILURE: Parser did not match input file");
     return new TreeBuilder(parser.GetRoot(), source).Build(tail);
 }