aboutsummaryrefslogtreecommitdiff
path: root/src/parse/parsetree.rs
diff options
context:
space:
mode:
authorJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-09 21:39:45 +0300
committerJoel Kronqvist <joel.kronqvist@iki.fi>2025-08-09 21:39:45 +0300
commita2ca4c08dcbb5c08e210bc741141290a136a8de4 (patch)
tree17e35daeb7028b61b3afb2a9a626bcf38a3dfbff /src/parse/parsetree.rs
parent8062ed87d30fa7628f26cfd7bb94bb0e7401752b (diff)
downloadmyslip-a2ca4c08dcbb5c08e210bc741141290a136a8de4.tar.gz
myslip-a2ca4c08dcbb5c08e210bc741141290a136a8de4.zip
Implemented print as ? -> ()
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..28e5044 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,