Пример #1
0
 public void process(JadeModel model, TextWriter writer)
 {
     Compiler.Compiler compiler = new Compiler.Compiler(rootNode);
     compiler.setPrettyPrint(prettyPrint);
     compiler.setTemplate(this);
     compiler.compile(model, writer);
 }
Пример #2
0
        // 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();
        }