aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parsetree.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-06 14:15:12 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-06 14:15:12 +0300
commit23b2028bdce46d02209fc2df70fc5468a8beffa8 (patch)
tree31e7a6fae6d5d01759a84334555f4cd1fa26a038 /src/parse/parsetree.rs
parent3d7ebeddc46e89c8e058b3f1805f836339a2f9ae (diff)
downloadmyslip-23b2028bdce46d02209fc2df70fc5468a8beffa8.tar.gz
myslip-23b2028bdce46d02209fc2df70fc5468a8beffa8.zip
Added boilerplate and tests for let-binds
Diffstat (limited to 'src/parse/parsetree.rs')
-rw-r--r--src/parse/parsetree.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parse/parsetree.rs b/src/parse/parsetree.rs
index 13d73ea..75758dc 100644
--- a/src/parse/parsetree.rs
+++ b/src/parse/parsetree.rs
@@ -113,6 +113,7 @@ fn tokens_to_ast_inner(
Some(Sym(s)) if s == "false" => Ok(Atom(False)),
Some(Sym(s)) if s == "quote" => Ok(Atom(Quote)),
Some(Sym(s)) if s == "vector" => Ok(Atom(Vector)),
+ Some(Sym(s)) if s == "let" => Ok(Atom(Let)),
Some(Sym(s)) => Ok(Atom(Var(s))),
Some(ParClose) => break,
Some(ParOpen) => {