示例#1
0
        // ( value variable -- )
        public override void Execute(Interpreter interp)
        {
            VariableItem variable = (VariableItem)interp.StackPop();
            StackItem    value    = interp.StackPop();

            variable.VariableValue = value;
        }
示例#2
0
        public bool TryFindVariable(string text, out Word result)
        {
            bool found = false;

            if (variables.ContainsKey(text))
            {
                VariableItem variableItem = variables[text];
                result = new PushStackItemWord(text, variableItem);
                found  = true;
            }
            else
            {
                result = null;
                found  = false;
            }
            return(found);
        }
示例#3
0
        // ( variable -- )
        public override void Execute(Interpreter interp)
        {
            VariableItem variable = (VariableItem)interp.StackPop();

            interp.StackPush(variable.VariableValue);
        }