diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-10-20 11:54:48 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-10-20 11:54:48 +1300 |
commit | 120b6f7043937cb1b72f2d52f6cb97fb5d0e3fc6 (patch) | |
tree | 05165693b2b5ce1c293b4b9cc4d8ab024847a065 /src | |
parent | 55be4528d2dc59acbc51fc672d9846b960972658 (diff) | |
download | torque-asm-120b6f7043937cb1b72f2d52f6cb97fb5d0e3fc6.zip |
Every other operation has a three-letter name, so this change makes
the operation names more consistent.
Diffstat (limited to 'src')
-rw-r--r-- | src/types/operator.rs | 6 |
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>", |