public void AddConstant(int id, Variable value) { if (constants.ContainsKey(id)) { constants[id] = value; } else { constants.Add(id, value); } }
public override void SetProperty(string name, Variable value) { if (properties.ContainsKey(name)) { properties[name] = value; } else { properties.Add(name, value); } }
public static void Push(Variable arg) { stack.Push(arg); }
public int setVariable(Variable variable) { variables.Add(variable); return variables.Count - 1; }
public void SetVariableValue(string variable, Variable value) { Variable var = FindVariable(variable); if (var != null) { var.SetValue(value.Value); } else { VariableIdent ident = new VariableIdent() { FrameId = frameStack.Peek().Id, VariableName = variable }; variables.Add(ident, value); } }
public abstract void SetProperty(string name, Variable value);