start accounting for pure/impure builtins

Signed-off-by: Ava Affine <ava@sunnypup.io>
This commit is contained in:
Ava Apples Affine 2024-06-12 11:13:34 -07:00
parent 2809569c35
commit 143173f046
6 changed files with 38 additions and 0 deletions

View file

@ -150,6 +150,7 @@ pub fn add_bool_lib(syms: &mut SymTable) {
conditional_branches: false,
docs: AND_DOCSTRING.to_string(),
value: ValueType::Internal(Rc::new(and_callback)),
optimizable: true,
..Default::default()
},
);
@ -162,6 +163,7 @@ pub fn add_bool_lib(syms: &mut SymTable) {
conditional_branches: false,
docs: BOOLCAST_DOCSTRING.to_string(),
value: ValueType::Internal(Rc::new(boolcast_callback)),
optimizable: true,
..Default::default()
},
);
@ -174,6 +176,7 @@ pub fn add_bool_lib(syms: &mut SymTable) {
conditional_branches: false,
docs: OR_DOCSTRING.to_string(),
value: ValueType::Internal(Rc::new(or_callback)),
optimizable: true,
..Default::default()
},
);
@ -186,6 +189,7 @@ pub fn add_bool_lib(syms: &mut SymTable) {
conditional_branches: false,
docs: NOT_DOCSTRING.to_string(),
value: ValueType::Internal(Rc::new(not_callback)),
optimizable: true,
..Default::default()
},
);
@ -198,6 +202,7 @@ pub fn add_bool_lib(syms: &mut SymTable) {
conditional_branches: false,
docs: ISEQ_DOCSTRING.to_string(),
value: ValueType::Internal(Rc::new(iseq_callback)),
optimizable: true,
..Default::default()
},
);