} else if ((lhs == Type.STRING && rhs != Type.STRING)
|| (lhs == Type.BOOLEAN && rhs != Type.BOOLEAN)
|| (lhs == Type.NUMERIC && rhs != Type.NUMERIC)) {
String msg = "expecting a " + lhs + " expression for operator "
+ operator + ", found a " + rhs;
throw new TypeMismatchException(right.getContext(), msg);
}
}