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