diff options
author | Simon THOBY <git@nightmared.fr> | 2022-12-09 22:48:04 +0100 |
---|---|---|
committer | Simon THOBY <git@nightmared.fr> | 2022-12-09 22:48:04 +0100 |
commit | 7667c77d1de9c6d2167d93024f0a682ef29c6403 (patch) | |
tree | 2ef63a016ded1fb94e024f643f42236e39ae2806 /src/expr/mod.rs | |
parent | d43356f31a3d4062ea076376a5ee1b457be1b226 (diff) |
re-impl the cmp expression
Diffstat (limited to 'src/expr/mod.rs')
-rw-r--r-- | src/expr/mod.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/expr/mod.rs b/src/expr/mod.rs index 8b3f5c2..0a7f54c 100644 --- a/src/expr/mod.rs +++ b/src/expr/mod.rs @@ -22,10 +22,8 @@ use thiserror::Error; mod bitwise; pub use self::bitwise::*; -/* mod cmp; pub use self::cmp::*; -*/ mod counter; pub use self::counter::*; @@ -225,7 +223,8 @@ create_expr_variant!( [Reject, Reject], [Counter, Counter], [Nat, Nat], - [Payload, Payload] + [Payload, Payload], + [Cmp, Cmp] ); #[derive(Debug, Clone, PartialEq, Eq, Default)] @@ -234,10 +233,6 @@ pub struct ExpressionList { } impl ExpressionList { - pub fn builder() -> Self { - Self { exprs: Vec::new() } - } - /// Useful to add raw expressions because RawExpression cannot infer alone its type pub fn add_raw_expression(&mut self, e: RawExpression) { self.exprs.push(e); |