diff options
author | Akshay <[email protected]> | 2021-04-28 07:15:04 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-04-28 07:15:04 +0100 |
commit | 7bc365c2d1cf9252f52fdcf50ded3890cfeb7ddd (patch) | |
tree | f358e7d1568d394598dd8bae1a7a7c10c72143a4 /src/lisp | |
parent | 092e187304c596f35b8ef9d7ca71850418d8a05d (diff) |
initial attempt at moving into render threadrender-thread
Diffstat (limited to 'src/lisp')
-rw-r--r-- | src/lisp/eval.rs | 9 |
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 | ||
15 | pub type Context = Vec<String>; | 15 | pub type Context = Vec<String>; |
16 | 16 | ||
17 | pub struct Evaluator<'ctx, 'global> { | 17 | pub 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 | ||
22 | impl<'ctx, 'global> Evaluator<'ctx, 'global> | 22 | impl<'global> Evaluator<'global> { |
23 | where | ||
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()), |