aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parsetree.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-06 17:05:55 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-06 17:05:55 +0300
commit3e1bf7f9946efe70d452c71494ac77ed39110804 (patch)
treef7682f538db9d8b77890e8c0e9c54eb2968d4388 /src/parse/parsetree.rs
parent313c044b4a878a425aaca6554576f5154ace8ff9 (diff)
downloadmyslip-3e1bf7f9946efe70d452c71494ac77ed39110804.tar.gz
myslip-3e1bf7f9946efe70d452c71494ac77ed39110804.zip
Added print, raised level on which UnboundGeneric error is returned
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 75758dc..8e2b856 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 == "print" => Ok(Atom(Print)),
Some(Sym(s)) if s == "let" => Ok(Atom(Let)),
Some(Sym(s)) => Ok(Atom(Var(s))),
Some(ParClose) => break,