aboutsummaryrefslogtreecommitdiff
path: root/src/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lisp')
-rw-r--r--src/lisp/eval.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lisp/eval.rs b/src/lisp/eval.rs
index 63c963c..8bfa86b 100644
--- a/src/lisp/eval.rs
+++ b/src/lisp/eval.rs
@@ -115,6 +115,10 @@ pub fn with_prelude() -> Environment {
115 Ok(LispExpr::Number(acc)) 115 Ok(LispExpr::Number(acc))
116 } 116 }
117 }); 117 });
118 primitive!(env, Some(0), "quit", |_, app| {
119 app.quit();
120 Ok(LispExpr::Unit)
121 });
118 env 122 env
119} 123}
120 124