-#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
-pub enum BinaryOp {
- LogicOp(LogicOp),
- ArithOp(ArithOp),
- CmpOp(CmpOp),
- Assignment { op: Option<ArithOp> },
-}
-
-#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
-pub enum LogicOp {
- And,
- Or,
-}
-
-#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
-pub enum CmpOp {
- Eq { negated: bool },
- Ord { ordering: Ordering, strict: bool },
-}
-
-#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
-pub enum Ordering {
- Less,
- Greater,
-}
-
-#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
-pub enum ArithOp {
- Add,
- Mul,
- Sub,
- Div,
- Rem,
- Shl,
- Shr,
- BitXor,
- BitOr,
- BitAnd,
-}
-
-pub use syntax::ast::PrefixOp as UnaryOp;