Пример #1
0
 public Method_Def(Id n, Type_cool t, Lista <Formal> a, Expr e) : base(new Node[] { n, t, a, e })
 {
     name = n;
     type = t;
     args = a;
     exp  = e;
 }
Пример #2
0
 public Class_Def(Type_cool t, Type_cool t1, Lista <Method_Def> m, Lista <Attr_Def> a) : base(new Node[] { m, a })
 {
     type         = t;
     inherit_type = t1;
     method       = m;
     attr         = a;
 }
Пример #3
0
 public Dispatch(Expr exp, Type_cool type, Call_Method call) : base(new Node[] { exp, type, call })
 {
     this.exp  = exp;
     this.type = type;
     this.call = call;
     s         = (this.type != null) ? this.type.s : "sin castear ";
 }
Пример #4
0
 public New_type(Type_cool t) : base(new Node[] { t })
 {
     this.type = t;
 }
Пример #5
0
 public Formal(Id n, Type_cool t) : base(new Node[] { n, t })
 {
     name = n;
     type = t;
 }
Пример #6
0
 public Attr_Def(Id n, Type_cool type, Expr exp) : base(new Node[] { n, type, exp })
 {
     name      = n;
     this.type = type;
     this.exp  = exp;
 }