public LangClass(ArrayList _vars, ArrayList _methods, ArrayList _constructor, string _name, Interpreter _inter) : base(ObjectType.CLASS, _inter) { vars = new ValueContainer <Hashtable>(); vars.Value = new Hashtable(); permissions = new ValueContainer <Hashtable>(); permissions.Value = new Hashtable(); foreach (ClassMember varia in _vars) { vars.Value[varia.name] = new LangNumber(0, handler); permissions.Value[varia.name] = varia.Modifiers; } methods = new ValueContainer <Hashtable>(); methods.Value = new Hashtable(); foreach (FunctionStatement func in _methods) { methods.Value[func.name] = func; } constructors = new ValueContainer <ArrayList>(); constructors.Value = _constructor; name = new ValueContainer <string>(); name.Value = _name; }
public LangNumber(double _numberValue, Interpreter _inter) : base(ObjectType.NUMBER, _inter) { numberValue = new ValueContainer <double>(); numberValue.Value = _numberValue; }
public LangImage(Bitmap _imageValue, Interpreter _inter) : base(ObjectType.IMAGE, _inter) { imageValue = new ValueContainer <Bitmap>(); imageValue.Value = _imageValue; }
public LangMap(Hashtable _arrayValue, Interpreter _inter) : base(ObjectType.MAP, _inter) { arrayValue = new ValueContainer <Hashtable>(); arrayValue.Value = _arrayValue; }
public LangString(string _stringValue, Interpreter _inter) : base(ObjectType.STRING, _inter) { stringValue = new ValueContainer <string>(); stringValue.Value = _stringValue; }