diff --git a/src/schala_lang/eval.rs b/src/schala_lang/eval.rs index 459902d..56b3c82 100644 --- a/src/schala_lang/eval.rs +++ b/src/schala_lang/eval.rs @@ -104,6 +104,10 @@ impl<'a> State<'a> { }; } }, + Binding { name, constant, expr } => { + let val = self.eval_expr(expr)?; + self.values.insert(name.clone(), ValueEntry::Binding { val }); + }, _ => return Err(format!("Declaration evaluation not yet implemented")) } Ok(())