finished let forms

Signed-off-by: Ava Hahn <ava@aidanis.online>
This commit is contained in:
Ava Hahn 2023-03-01 15:17:50 -08:00
parent 131008c3a2
commit c1d83a6285
Signed by untrusted user who does not match committer: affine
GPG key ID: 3A4645B8CF806069
5 changed files with 198 additions and 27 deletions

View file

@ -69,6 +69,16 @@ pub fn static_stdlib(syms: &mut SymTable) -> Result<(), String> {
},
);
syms.insert(
"let".to_string(),
Symbol {
name: String::from("let"),
args: Args::Infinite,
conditional_branches: true,
value: ValueType::Internal(Rc::new(control::let_callback)),
},
);
Ok(())
}