mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 04:12:42 +00:00
updated error names and Display
This commit is contained in:
parent
b8741ea3cc
commit
f9fe77f1e2
7 changed files with 164 additions and 81 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue