mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 04:12:42 +00:00
Interpreter finish
This commit is contained in:
parent
719a014977
commit
647a095a05
5 changed files with 29 additions and 21 deletions
|
|
@ -16,7 +16,7 @@ pub enum RuntimeError {
|
|||
BinaryOpInvalidArguments { left: Value, op: BinaryOp, right: Value },
|
||||
#[error("Division by zero")]
|
||||
DivisionByZero,
|
||||
#[error("Name {name} is not defined")]
|
||||
#[error("Local {name} is not defined")]
|
||||
NameNotDefined { name: String },
|
||||
#[error("Global {name} is not defined")]
|
||||
GlobalNotDefined { name: String },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue