예제 #1
0
 public String toString() {
   if (bit == null) return lab.toString() + " " + "int";
   else
     return lab.toString()
         + " "
         + "int"
         + (bit instanceof ASTConstantExpression ? bit.toString() : "@(" + bit.toString() + ")");
 }
예제 #2
0
 public boolean equals(Object obj) {
   if (!(obj instanceof ASTIntType)) return false;
   ASTIntType other = (ASTIntType) obj;
   return bit.equals(other.bit) && lab == other.lab;
 }