aboutsummaryrefslogtreecommitdiff
path: root/src/sexp/step.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-14 14:02:27 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-14 14:02:27 +0300
commit907bd54d19f6bf14a130a136df6f37cc5d256468 (patch)
tree28e282e040d05f107833a48fa27e8498746dfbda /src/sexp/step.rs
parent52263c39dd6006cce5fc938ec60751ab45b73f8b (diff)
downloadmyslip-907bd54d19f6bf14a130a136df6f37cc5d256468.tar.gz
myslip-907bd54d19f6bf14a130a136df6f37cc5d256468.zip
feat: parsing of new types (T, (int ...), (int bool)) etc. also fixed bug in into_type (it didn't handle lists recursively)
Diffstat (limited to 'src/sexp/step.rs')
-rw-r--r--src/sexp/step.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sexp/step.rs b/src/sexp/step.rs
index bae47a5..d35c8af 100644
--- a/src/sexp/step.rs
+++ b/src/sexp/step.rs
@@ -368,7 +368,6 @@ impl SExp {
let (scrutinee, patarms) = scons(op, l).check_case().unwrap();
if !scrutinee.is_value() {
return Ok(SExp::back_to_case(scrutinee.step()?, patarms));
- // return scons(Case, scons(scrutinee.step()?))
}
let scrutinee = match scrutinee {
@@ -646,7 +645,7 @@ impl SExp {
},
// Nil in list
- SCons(op, l) if *op == Atom(Nil) => {
+ SCons(op, _) if *op == Atom(Nil) => {
Ok(scons(Vector, Nil))
},