From b3141319b98199d75f1317ef3754c0b6b14b1f78 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 25 Oct 2021 00:15:04 -0700 Subject: refactor into lib-style crate, and add some early tests --- src/cexpr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cexpr.rs') diff --git a/src/cexpr.rs b/src/cexpr.rs index b183c4a..357caff 100644 --- a/src/cexpr.rs +++ b/src/cexpr.rs @@ -37,7 +37,7 @@ impl NumericConstant { } } -#[derive(Clone, PartialEq, PartialOrd)] +#[derive(Clone, PartialEq, PartialOrd, Debug)] pub enum CNumber { // order here is important for sorting, etc Integer(i64), @@ -99,7 +99,7 @@ impl CNumber { } } -#[derive(Clone, PartialEq, PartialOrd)] +#[derive(Clone, PartialEq, PartialOrd, Debug)] pub enum CExpr { // order here is important for sorting, etc Number(CNumber), -- cgit v1.2.3