finished circuit form
Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
parent
c235f9727f
commit
4b587f11ab
7 changed files with 144 additions and 53 deletions
12
src/stl.rs
12
src/stl.rs
|
|
@ -22,8 +22,8 @@ use std::env;
|
|||
use std::rc::Rc;
|
||||
|
||||
pub mod append;
|
||||
pub mod control;
|
||||
pub mod boolean;
|
||||
pub mod control;
|
||||
//pub mod str;
|
||||
|
||||
/// static_stdlib
|
||||
|
|
@ -107,7 +107,7 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
|
|||
args: Args::Infinite,
|
||||
conditional_branches: false,
|
||||
value: ValueType::Internal(Rc::new(boolean::bool_and_callback)),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
syms.insert(
|
||||
|
|
@ -117,7 +117,7 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
|
|||
args: Args::Infinite,
|
||||
conditional_branches: false,
|
||||
value: ValueType::Internal(Rc::new(boolean::bool_or_callback)),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
syms.insert(
|
||||
|
|
@ -127,7 +127,7 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
|
|||
args: Args::Strict(vec![Type::Bool]),
|
||||
conditional_branches: false,
|
||||
value: ValueType::Internal(Rc::new(boolean::bool_not_callback)),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
syms.insert(
|
||||
|
|
@ -137,7 +137,7 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
|
|||
args: Args::Infinite,
|
||||
conditional_branches: false,
|
||||
value: ValueType::Internal(Rc::new(boolean::bool_iseq_callback)),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
syms.insert(
|
||||
|
|
@ -147,7 +147,7 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
|
|||
args: Args::Lazy(1),
|
||||
conditional_branches: true,
|
||||
value: ValueType::Internal(Rc::new(boolean::bool_toggle_callback)),
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue