Parse boolean and bitwise ops

This commit is contained in:
mars 2022-03-01 11:19:04 -07:00
parent 4fcad8c6a4
commit 24e5ac2aef
1 changed files with 10 additions and 0 deletions

View File

@ -297,6 +297,11 @@ pub enum BinaryOp {
Mul,
Div,
Assign,
BoolOr,
BoolAnd,
BitOr,
BitAnd,
BitXor,
Less,
LessEq,
Greater,
@ -315,6 +320,11 @@ impl BinaryOp {
OpMul => Some(Mul),
OpDiv => Some(Div),
OpAssign => Some(Assign),
OpBoolOr => Some(BoolOr),
OpBoolAnd => Some(BoolAnd),
OpBitOr => Some(BitOr),
OpBitAnd => Some(BitAnd),
OpBitXor => Some(BitXor),
OpLess => Some(Less),
OpLessEq => Some(LessEq),
OpGreater => Some(Greater),