From b0447ddc694841a5fce8126cbabd5b56eec9e5f4 Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Sat, 25 Jan 2020 09:56:27 -0500 Subject: [PATCH] Add + - * / % ops --- src/common.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/common.rs b/src/common.rs index 9d5cac6..3da262e 100644 --- a/src/common.rs +++ b/src/common.rs @@ -339,6 +339,11 @@ pub enum Op { GreaterThanEqual, LessThan, LessThanEqual, + Plus, + Minus, + Mul, + Div, + Rem, } impl Display for Op { @@ -350,6 +355,11 @@ impl Display for Op { Self::LessThanEqual => write!(f, "<="), Self::GreaterThan => 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, "%"), } } }