public override void Compile()
        {
            Trace.WriteLine(this.Name);
            Trace.Indent();
            PowerScriptCompiler compiler = new PowerScriptCompiler(this);

            compileInProgress = true;
            compiler.CompileSource(this.Script);
            compileInProgress = false;
            Trace.Unindent();
        }
Пример #2
0
        static void Main(string[] args)
        {
            TextWriterTraceListener myWriter = new TextWriterTraceListener(System.Console.Out);

            Trace.Listeners.Add(myWriter);
            PFCDocAnalyzer pfcDoc = new PFCDocAnalyzer();
            KTKDocAnalyzer ktkDoc = new KTKDocAnalyzer();

            PowerScriptCompiler.AddAnalyzer(pfcDoc);
            PowerScriptCompiler.AddAnalyzer(ktkDoc);
            Workspace workspace = Workspace.Load(args[0], args[1]);

            workspace.Compile();
            ktkDoc.ResolveReferenceLinks(workspace.MainTarget, true);

            HtmlExport export = new HtmlExport();

            export.Export(workspace, args[2]);

            workspace.Close();
        }