Exemplo n.º 1
0
 public Base_Object_Type(string name, Base_Object_Type father, Attribute[] attr, IMethod[] methods)
 {
     Name       = name;
     Father     = father;
     Attributes = attr;
     Methods    = methods;
 }
Exemplo n.º 2
0
 public Base_Object_Value(object value, Base_Object_Type type)
 {
     Value = value;
     Type  = type;
     foreach (var item in Type.GetAllAttributes())
     {
         AttributesValues[item] = item.Type.Instanciate();
     }
 }
Exemplo n.º 3
0
 public Attribute(string name, Base_Object_Type type, int index)
 {
     Name  = name;
     Type  = type;
     Index = index;
 }
Exemplo n.º 4
0
 public IMethod(string name, Base_Object_Type type_result, Attribute[] type_params)
 {
     Name       = name;
     TypeResult = type_result;
     TypeParams = type_params;
 }
 public Method_AritmeticOP(string op, Base_Object_Type type) :
     base(op, type, new Attribute[] { new Attribute("a", type, 0), new Attribute("b", type, 1) })
 {
 }