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