Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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 ";
 }
Ejemplo n.º 4
0
 public New_type(Type_cool t) : base(new Node[] { t })
 {
     this.type = t;
 }
Ejemplo n.º 5
0
 public Formal(Id n, Type_cool t) : base(new Node[] { n, t })
 {
     name = n;
     type = t;
 }
Ejemplo n.º 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;
 }