public Unary(Token tok, Expr x) : base(tok, null) { expr = x; type = BasicType.max(BasicType.Int, expr.type); if (type == null) { error("type error"); } }
public Arith(Token tok, Expr x1, Expr x2) : base(tok, null) { expr1 = x1; expr2 = x2; type = BasicType.max(expr1.type, expr2.type); if (type == null) { error("type error"); } }