diff options
Diffstat (limited to 'src/run/mod.rs')
| -rw-r--r-- | src/run/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run/mod.rs b/src/run/mod.rs index db0ed05..4970792 100644 --- a/src/run/mod.rs +++ b/src/run/mod.rs @@ -208,7 +208,8 @@ impl Executor { } fn execute_fun_decl(&mut self, fd: parse::FunDecl<PostExpansion>) -> Result<(), ExecError> { - todo!() + self.se.lock().unwrap().funs.insert(fd.name, *fd.body.body); + Ok(()) } fn execute( |
