it runs! gets the wrong answer, but runs!

This commit is contained in:
2024-02-17 09:38:12 -08:00
parent 9d41cf0da7
commit 7edaf747aa
8 changed files with 491 additions and 26 deletions

View File

@@ -58,6 +58,18 @@ fn main() {
}
};
let (errors, warnings) = syntax.validate();
let stop = !errors.is_empty();
for error in errors {
emit(error.into());
}
for warning in warnings {
emit(warning.into());
}
if stop {
return;
}
if cli.interpreter == Interpreter::Syntax {
match syntax.eval() {
Err(e) => println!("Evaluation error: {}", e),