Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #3
0
 public Engine(string less, TextWriter errorOut)
 {
     this.less = less;
     _parser = new nLess.nLess(less, errorOut);
 }