aboutsummaryrefslogtreecommitdiff
path: root/src/lisp
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-03-24 12:54:39 +0000
committerAkshay <[email protected]>2021-03-24 12:54:39 +0000
commit96120e602f43e225d22af6ec1053ebc6797a79f7 (patch)
tree8f27c503efeebefa225191ef73ffe516abcd554b /src/lisp
parent240aca36313016df68f03954c54c2bc21910344e (diff)
new quit primitive
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