diff options
Diffstat (limited to 'src/types/operator.rs')
-rw-r--r-- | src/types/operator.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/types/operator.rs b/src/types/operator.rs index af607e3..d5b5e94 100644 --- a/src/types/operator.rs +++ b/src/types/operator.rs @@ -19,6 +19,7 @@ pub enum Operator { BitXor, BitNot, Length, + Tally, } impl Operator { @@ -57,6 +58,7 @@ impl Operator { "<xor>" => Some(Operator::BitXor), "<not>" => Some(Operator::BitNot), "<len>" => Some(Operator::Length), + "<tal>" => Some(Operator::Tally), _ => None, } } @@ -84,6 +86,7 @@ impl std::fmt::Display for Operator { Operator::BitXor => "<xor>", Operator::BitNot => "<not>", Operator::Length => "<len>", + Operator::Tally => "<tal>", }; write!(f, "{string}") } |