Add support for syntax blocks.

This commit is contained in:
2024-03-06 09:50:42 -08:00
parent 8dab797c90
commit ac564e6e41
11 changed files with 39 additions and 5 deletions

View File

@@ -177,6 +177,13 @@ impl Statement {
Statement::Print(loc, var) => {
errors.push(Error::UnboundVariable(loc.clone(), var.to_string()))
}
Statement::Expression(e) => {
let (mut exp_errors, mut exp_warnings) = e.validate(bound_variables);
errors.append(&mut exp_errors);
warnings.append(&mut exp_warnings);
}
}
(errors, warnings)