Exemplo n.º 1
0
 public String toString() {
   if (bit == null) return lab.toString() + " " + "int";
   else
     return lab.toString()
         + " "
         + "int"
         + (bit instanceof ASTConstantExpression ? bit.toString() : "@(" + bit.toString() + ")");
 }
Exemplo n.º 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;
 }