/// <summary> /// EPIC!!!! /// </summary> /// <param name="req"></param> /// <returns></returns> public override AuthoringScope ParseSource(ParseRequest req) { BooDocumentCompiler compiler = new BooDocumentCompiler(); CompiledDocument document = compiler.Compile(req.FileName, req.Text); return new BooScope(this, document, GetSource(req.View), req.FileName); }
/// <summary> /// Iterates the files and compiles them en-masse. /// </summary> private void Compile() { var compiler = new BooDocumentCompiler(); files.ForEach(f => compiler.AddSource(f.Path, f.Source)); references.ForEach(r => compiler.AddReference(r)); compiledProject = compiler.Compile(); files.ForEach(f => f.IsDirty = false); }