diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-25 00:15:04 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-10-25 00:15:04 -0700 |
commit | b3141319b98199d75f1317ef3754c0b6b14b1f78 (patch) | |
tree | 70802b1170fa58a0b02ae9d2d02e985ab4b0b9af /src/cexpr.rs | |
parent | 04c53bb88bfbbc5c65b25104959c66d06e2b4fa1 (diff) | |
download | casual-b3141319b98199d75f1317ef3754c0b6b14b1f78.tar.gz casual-b3141319b98199d75f1317ef3754c0b6b14b1f78.zip |
refactor into lib-style crate, and add some early tests
Diffstat (limited to 'src/cexpr.rs')
-rw-r--r-- | src/cexpr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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), |