(un)finished env integration logic

This commit is contained in:
Aidan Hahn 2021-11-25 21:24:04 -08:00
parent 5aa2b27343
commit a967ac5c3e
No known key found for this signature in database
GPG key ID: 327711E983899316
2 changed files with 32 additions and 27 deletions

View file

@ -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