public override IInstruction Execute(ISchemeVM vm)
        {
            var e = AtomHelper.CreateEnvironment();

            if (Populate)
            {
                AtomHelper.PopulateEnvironment(e, vm);
            }

            SetA(vm, e);
            return(Next);
        }
Exemplo n.º 2
0
        public void Reset(bool env = true)
        {
            A = AtomHelper.Nil;
            R = new Stack <ISExpression>();
            S = new Stack <IFrame>();

            if (env)
            {
                E = AtomHelper.CreateEnvironment();
                AtomHelper.PopulateEnvironment(E, this);
            }
        }