Examples of TreeWriter


Examples of com.xmlcalabash.util.TreeWriter

        } catch (UnsupportedEncodingException ex) {
            // I don't think this can ever actually happen
            throw new XProcException(ex);
        }

        TreeWriter tree = new TreeWriter(runtime);
        tree.startDocument(step.getNode().getBaseURI());
        tree.addStartElement(XProcConstants.c_result);
        tree.startContent();
        tree.addText("true");
        tree.addEndElement();
        tree.endDocument();
        result.write(tree.getResult());
    }
View Full Code Here

Examples of wyvern.tools.util.TreeWriter

      Reader reader = new FileReader(file);
      TypedAST res = (TypedAST) new Wyvern().parse(reader, filename);
      res.typecheck(Globals.getStandardEnv(), Optional.empty());
      res = new DSLTransformer().transform(res);
      Value finalV = res.evaluate(Globals.getStandardEnv());
      TreeWriter t = new TreeWriter();
      finalV.writeArgsToTree(t);
      System.out.println(t.getResult());
    } catch (IOException e) {
      System.err.println("Error reading file " + filename);
    } catch (CopperParserException e) {
      System.err.print("Parsing error: ");
      e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.