finished circuit form

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-03-03 14:29:53 -08:00
parent c235f9727f
commit 4b587f11ab
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
7 changed files with 144 additions and 53 deletions

View file

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