aboutsummaryrefslogtreecommitdiff
path: root/src/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lisp')
-rw-r--r--src/lisp/eval.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lisp/eval.rs b/src/lisp/eval.rs
index 75cb5c9..759cca0 100644
--- a/src/lisp/eval.rs
+++ b/src/lisp/eval.rs
@@ -14,15 +14,12 @@ use log::{error, info};
14 14
15pub type Context = Vec<String>; 15pub type Context = Vec<String>;
16 16
17pub struct Evaluator<'ctx, 'global> { 17pub struct Evaluator<'global> {
18 pub app: &'global mut AppState<'ctx>, 18 pub app: &'global mut AppState,
19 pub context: Context, 19 pub context: Context,
20} 20}
21 21
22impl<'ctx, 'global> Evaluator<'ctx, 'global> 22impl<'global> Evaluator<'global> {
23where
24 'ctx: 'global,
25{
26 pub fn eval(&mut self, expr: &LispExpr) -> Result<LispExpr, LispError> { 23 pub fn eval(&mut self, expr: &LispExpr) -> Result<LispExpr, LispError> {
27 match expr { 24 match expr {
28 LispExpr::Unit => Ok(expr.clone()), 25 LispExpr::Unit => Ok(expr.clone()),