[msl-out] support all binary ops

This commit is contained in:
Dzmitry Malyshau 2021-02-10 17:02:21 -05:00
parent 3b4935550d
commit dad02eb0a8

View File

@ -424,7 +424,12 @@ impl<W: Write> Writer<W> {
crate::BinaryOperator::Greater => ">",
crate::BinaryOperator::GreaterEqual => ">=",
crate::BinaryOperator::And => "&",
_ => return Err(Error::UnsupportedBinaryOp(op)),
crate::BinaryOperator::ExclusiveOr => "^",
crate::BinaryOperator::InclusiveOr => "|",
crate::BinaryOperator::LogicalAnd => "&&",
crate::BinaryOperator::LogicalOr => "||",
crate::BinaryOperator::ShiftLeft => "<<",
crate::BinaryOperator::ShiftRight => ">>",
};
let kind = self
.typifier