Add > and < ops

This commit is contained in:
ConnorSkees 2020-01-12 12:18:44 -05:00
parent bd4b38550c
commit 9b4228f14c

View File

@ -319,7 +319,9 @@ impl TryFrom<char> for Whitespace {
pub enum Op {
Equal,
NotEqual,
GreaterThan,
GreaterThanEqual,
LessThan,
LessThanEqual,
}
@ -330,6 +332,8 @@ impl Display for Op {
Op::NotEqual => write!(f, "!="),
Op::GreaterThanEqual => write!(f, ">="),
Op::LessThanEqual => write!(f, "<="),
Op::GreaterThan => write!(f, ">"),
Op::LessThan => write!(f, "<"),
}
}
}