xo-reader: parse expr with operator !=
This commit is contained in:
parent
7d220ede27
commit
622f08856e
1 changed files with 8 additions and 1 deletions
|
|
@ -192,7 +192,14 @@ namespace xo {
|
|||
break;
|
||||
|
||||
case optype::op_not_equal:
|
||||
assert(false);
|
||||
if (lhs_->valuetype()->is_i64() && rhs_->valuetype()->is_i64()) {
|
||||
return Apply::make_cmp_ne_i64(lhs_, rhs_);
|
||||
} else {
|
||||
this->apply_type_error(c_self_name,
|
||||
op_type_, lhs_, rhs_, p_psm);
|
||||
return nullptr;
|
||||
}
|
||||
break;
|
||||
|
||||
case optype::op_less:
|
||||
// TODO: floating-point less-than
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue