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,
|
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),
|
||||||
|
|
Loading…
Reference in New Issue