コード例 #1
0
        private Pastel.PastelCompiler GenerateCoreVmParseTree(
            Platform.AbstractPlatform platform,
            Dictionary <string, object> constantFlags)
        {
            using (new PerformanceSection("VmGenerator.GenerateCoreVmParseTree"))
            {
                Pastel.PastelCompiler compiler = new Pastel.PastelCompiler(
                    false,
                    null,
                    constantFlags,
                    new InlineImportCodeLoader(),
                    null,
                    null);

                foreach (string file in INTERPRETER_BASE_FILES)
                {
                    string code = LegacyUtil.ReadInterpreterFileInternally(file);
                    compiler.CompileBlobOfCode(file, code);
                }
                compiler.Resolve();

                return(compiler);
            }
        }
コード例 #2
0
 public string LoadCode(string path)
 {
     return(LegacyUtil.ReadInterpreterFileInternally(path));
 }