// $Id: EqOpExpr.java,v 1.1.1.1 1999/12/05 22:19:51 mpp Exp $

package IR2;

public abstract class EqOpExpr extends BinaryOpExpr {
  public EqOpExpr(RValue a1, RValue a2) throws SemanticTypeException {
	super(a1, a2);
	if (a1 != null && a2 != null && a1.get_type() !=  a2.get_type())
	  throw new SemanticTypeException("incompatible types passed to equality operator");
  }

  public int get_type() { return Typed.BOOLEAN; }
}
