summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/types/operator.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/types/operator.rs b/src/types/operator.rs
index e94c67d..77403d7 100644
--- a/src/types/operator.rs
+++ b/src/types/operator.rs
@@ -32,6 +32,7 @@ impl Operator {
"=" => Some(Operator::Equal),
"==" => Some(Operator::Equal),
"<eq>" => Some(Operator::Equal),
+ "<equ>" => Some(Operator::Equal),
"!=" => Some(Operator::NotEqual),
"<neq>" => Some(Operator::NotEqual),
"<" => Some(Operator::LessThan),
@@ -59,6 +60,7 @@ impl Operator {
"<shr>" => Some(Operator::RightShift),
"<and>" => Some(Operator::BitAnd),
"<or>" => Some(Operator::BitOr),
+ "<ior>" => Some(Operator::BitOr),
"<xor>" => Some(Operator::BitXor),
"<not>" => Some(Operator::BitNot),
"<len>" => Some(Operator::Length),
@@ -75,7 +77,7 @@ impl Operator {
impl std::fmt::Display for Operator {
fn fmt(&self, f: &mut std::fmt::Formatter) -> Result<(), std::fmt::Error> {
let string = match self {
- Operator::Equal => "<eq>",
+ Operator::Equal => "<equ>",
Operator::NotEqual => "<neq>",
Operator::LessThan => "<lth>",
Operator::GreaterThan => "<gth>",
@@ -90,7 +92,7 @@ impl std::fmt::Display for Operator {
Operator::LeftShift => "<shl>",
Operator::RightShift => "<shr>",
Operator::BitAnd => "<and>",
- Operator::BitOr => "<or>",
+ Operator::BitOr => "<ior>",
Operator::BitXor => "<xor>",
Operator::BitNot => "<not>",
Operator::Length => "<len>",