aboutsummaryrefslogtreecommitdiff
path: root/src/sexp/display.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-19 13:55:05 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-19 13:55:05 +0300
commita70dcaa949f41c585f9aea5e79f2550053d8e857 (patch)
tree9366f0b1e026c009708ebc243d006a79cbf452c9 /src/sexp/display.rs
parentd4d6e972650370d529363f7db3946e58bdbd7bca (diff)
downloadmyslip-a70dcaa949f41c585f9aea5e79f2550053d8e857.tar.gz
myslip-a70dcaa949f41c585f9aea5e79f2550053d8e857.zip
test: added boilerplate and tests for coproduct parsing, type checking and evaluation
Diffstat (limited to 'src/sexp/display.rs')
-rw-r--r--src/sexp/display.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sexp/display.rs b/src/sexp/display.rs
index ec1b421..703bda3 100644
--- a/src/sexp/display.rs
+++ b/src/sexp/display.rs
@@ -28,6 +28,9 @@ impl fmt::Display for SLeaf {
RestPat(s) => format!("..{s}"),
Quote => "quote".to_string(),
Vector => "vector".to_string(),
+ Coprod => "coprod".to_string(),
+ Inl => "inl".to_string(),
+ Inr => "inr".to_string(),
Concat => "<>".to_string(),
Print => "print".to_string(),
Let => "let".to_string(),