Exemple #1
0
 public override void Begin(ICompiler compiler)
 {
     base.Begin(compiler);
     Decompiler      = new CppDecompiler(this);
     IncludeResolver = new IncludeResolver(this, Environment);
     Scheduler.AddTransform(new CppFinallyTransform(this));
     Scheduler.AddTransform(new CppTransform(this));
     _extension.Begin(compiler);
 }
Exemple #2
0
        public override BackendResult Build()
        {
            ExportBundle(Environment.GetString("BundleDirectory"));
            new CppPrecalc(this).Run();
            ExportNamespace(Data.IL);

            foreach (var e in IncludeResolver.GetIncludes(Data.Entrypoint))
            {
                Environment.Require("Main.Include", e);
            }

            Environment.Set("Main.Body", Decompiler.GetScope(Data.StartupCode, Data.Entrypoint));
            return(null);
        }