public void process(JadeModel model, TextWriter writer) { Compiler.Compiler compiler = new Compiler.Compiler(rootNode); compiler.setPrettyPrint(prettyPrint); compiler.setTemplate(this); compiler.compile(model, writer); }
// Convenience function that takes the code field and compiles to the program field public void compile() { MemoryStream output = new MemoryStream(); Compiler.Compiler cc = new Compiler.Compiler( new StringReader(code), output); cc.compile(); program = output.ToArray(); }