public Machine() { this.rootcontext = new Context(); this.rootcontext.SetValue("c/1", new CompileModuleFunction(this)); this.rootcontext.SetValue("spawn/1", new SpawnFunction()); this.rootcontext.SetValue("self/0", new SelfFunction()); this.TextWriter = System.Console.Out; Module lists = new ListsModule(this.rootcontext); this.rootcontext.SetValue(lists.Name, lists); Module io = new IoModule(this); this.rootcontext.SetValue(io.Name, io); }
public void SetParent(Context parent) { this.parent = parent; }
public Context(Context parent = null, Module module = null) { this.parent = parent; this.module = module; }