Parse boolean and bitwise ops
This commit is contained in:
parent
4fcad8c6a4
commit
24e5ac2aef
10
src/parse.rs
10
src/parse.rs
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue