Add + - * / % ops
This commit is contained in:
parent
30cac02f9c
commit
b0447ddc69
@ -339,6 +339,11 @@ pub enum Op {
|
|||||||
GreaterThanEqual,
|
GreaterThanEqual,
|
||||||
LessThan,
|
LessThan,
|
||||||
LessThanEqual,
|
LessThanEqual,
|
||||||
|
Plus,
|
||||||
|
Minus,
|
||||||
|
Mul,
|
||||||
|
Div,
|
||||||
|
Rem,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Display for Op {
|
impl Display for Op {
|
||||||
@ -350,6 +355,11 @@ impl Display for Op {
|
|||||||
Self::LessThanEqual => write!(f, "<="),
|
Self::LessThanEqual => write!(f, "<="),
|
||||||
Self::GreaterThan => write!(f, ">"),
|
Self::GreaterThan => write!(f, ">"),
|
||||||
Self::LessThan => write!(f, "<"),
|
Self::LessThan => write!(f, "<"),
|
||||||
|
Self::Plus => write!(f, "+"),
|
||||||
|
Self::Minus => write!(f, "-"),
|
||||||
|
Self::Mul => write!(f, "*"),
|
||||||
|
Self::Div => write!(f, "/"),
|
||||||
|
Self::Rem => write!(f, "%"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user