Inheritance: Wren.Core.Objects.Obj
Beispiel #1
0
        public WrenVM()
        {
            MethodNames = new List<string>();
            ObjString name = new ObjString("core");

            // Implicitly create a "core" module for the built in libraries.
            ObjModule coreModule = new ObjModule(name);

            _modules = new ObjMap();
            _modules.Set(Obj.Null, coreModule);

            CoreLibrary core = new CoreLibrary(this);
            core.InitializeCore();

            // Load in System functions
            Meta.LoadLibrary(this);
        }
Beispiel #2
0
        public WrenVM()
        {
            MethodNames = new List<string>();
            ObjString name = new ObjString("core");

            // Implicitly create a "core" module for the built in libraries.
            ObjModule coreModule = new ObjModule(name);

            modules = new ObjMap();
            modules.Set(new Value (ValueType.Null), new Value(coreModule));

            CoreLibrary core = new CoreLibrary(this);
            core.InitializeCore();

            // Load in System functions
            Library.IO.LoadIOLibrary(this);
        }
Beispiel #3
0
 static bool prim_map_instantiate(WrenVM vm, Obj[] args, int stackStart)
 {
     args[stackStart] = new ObjMap();
     return true;
 }