finished while form

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-03-02 15:29:50 -08:00
parent 6ef467db94
commit c235f9727f
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
5 changed files with 185 additions and 5 deletions

View file

@ -80,6 +80,26 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
},
);
syms.insert(
"while".to_string(),
Symbol {
name: String::from("while"),
args: Args::Infinite,
conditional_branches: true,
value: ValueType::Internal(Rc::new(control::while_callback)),
},
);
syms.insert(
"circuit".to_string(),
Symbol {
name: String::from("circuit"),
args: Args::Infinite,
conditional_branches: true,
value: ValueType::Internal(Rc::new(control::circuit_callback)),
},
);
syms.insert(
"and".to_string(),
Symbol {