(un)finished env integration logic
This commit is contained in:
parent
5aa2b27343
commit
a967ac5c3e
2 changed files with 32 additions and 27 deletions
|
|
@ -26,7 +26,7 @@ use crate::eval::eval;
|
|||
pub type FTable = HashMap<String, Rc<RefCell<Function>>>;
|
||||
|
||||
// Standardized function signature for stdlib functions
|
||||
pub type InternalOperation = fn(Ast, Rc<RefCell<VTable>>, Rc<RefCell<FTable>>) -> Ctr;
|
||||
pub type InternalOperation = impl Fn(Ast, Rc<RefCell<VTable>>, Rc<RefCell<FTable>>) -> Ctr;
|
||||
pub struct ExternalOperation {
|
||||
// Un-evaluated abstract syntax tree
|
||||
// TODO: Intermediate evaluation to simplify branches with no argument in them
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue