updated error names and Display

This commit is contained in:
Moritz Gmeiner 2024-09-01 23:53:04 +02:00
commit f9fe77f1e2
7 changed files with 164 additions and 81 deletions

View file

@ -290,8 +290,6 @@ impl Eval for Stmt {
env.exit_scope();
}
Stmt::ExprStmt { expr } => {
// expr.eval(env)?;
// Ok(Value::Nil)
expr.eval(env)?;
}
Stmt::Break => return Err(RuntimeError::Break),