Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void SetParent(Context parent)
 {
     this.parent = parent;
 }
Esempio n. 3
0
 public Context(Context parent = null, Module module = null)
 {
     this.parent = parent;
     this.module = module;
 }