fix up def tests
Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
parent
870b444505
commit
c5e68f25ba
2 changed files with 15 additions and 8 deletions
|
|
@ -58,9 +58,9 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
|
|||
/// callbacks with configuration into a symtable
|
||||
pub fn dynamic_stdlib(env: bool, syms: &mut SymTable) -> Result<(), String> {
|
||||
syms.insert("def".to_string(), Symbol {
|
||||
name: String::from("export"),
|
||||
name: String::from("define"),
|
||||
args: Args::Lazy(2),
|
||||
conditional_branches: false,
|
||||
conditional_branches: true,
|
||||
value: ValueType::Internal(Rc::new( move |ast: &Seg, syms: &mut SymTable| -> Result<Ctr, String> {
|
||||
_store_callback(ast, syms, env)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue