it runs! gets the wrong answer, but runs!
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user