aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parsetree.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-07-30 17:27:15 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-07-30 17:27:15 +0300
commitcd68a2880db1400ae09ce0df64994b2bae33a3c1 (patch)
tree04893ee79ed16b920e7129b4eab1298a62814d65 /src/parse/parsetree.rs
parent8e2ca4bbc356d87ff5a37f20bea4f5b3cc561041 (diff)
downloadmyslip-cd68a2880db1400ae09ce0df64994b2bae33a3c1.tar.gz
myslip-cd68a2880db1400ae09ce0df64994b2bae33a3c1.zip
Implemented evaluation according to tests. Quite a bit of changes were required, see rest of commit message.
SExp::Quote was added to let the interpreter know whether a list should be evaluated or treated as a literal list. It still needs code to be added for parsing it successfully. Some utility functions were needed: * SExp::is_value * SExp::consists_of_values * SExp::into_vec
Diffstat (limited to 'src/parse/parsetree.rs')
-rw-r--r--src/parse/parsetree.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/parse/parsetree.rs b/src/parse/parsetree.rs
index 560ebe7..031902a 100644
--- a/src/parse/parsetree.rs
+++ b/src/parse/parsetree.rs
@@ -4,7 +4,6 @@ use nom::{
Parser,
branch::alt,
multi::many0,
- combinator::all_consuming,
bytes::complete::{tag, take_while1},
character::complete::multispace1,
};