Пример #1
0
        public Fabricator(Compiler.CompilerOutput output)
        {
            _output = output;
            _funcCache = new Dictionary<string, Emit<MuftecFunction>>();

            // Create a BCL-based system for compile-time opcode referencing
            _system = new MuftecLibSystem();
            var bcl = new MuftecBaseClassLibrary();
            _system.AddLibrary(bcl);
        }
Пример #2
0
 public static void SaveAssembly(Compiler.CompilerOutput output, string filename, bool isDebug = false)
 {
     var fab = new Fabricator(output);
     fab.IsDebug = isDebug;
     fab.Save(filename);
 }