Пример #1
0
 public Element Parse(string source, Element tail)
 {
     var parser = new nLess.nLess(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);
 }
Пример #2
0
 public Element Parse(string source, Element tail)
 {
     var parser = new nLess.nLess(source, Console.Out);
     if (!parser.Parse()) throw new ParsingException("FAILURE: Parser did not match input file");
     return new TreeBuilder(parser.GetRoot(), source).Build(tail);
 }