added stack overflow error

This commit is contained in:
Moritz Gmeiner 2024-09-01 20:47:42 +02:00
commit 6386df22c0
3 changed files with 10 additions and 8 deletions

View file

@ -48,6 +48,8 @@ pub enum RuntimeError {
UndefinedAttribute { class: Rc<LoxClass>, name: Box<str> },
#[error("RuntimeError: {value} is not a valid superclass")]
InvalidSuperclass { value: Value },
#[error("RuntimeError: stack overflow")]
StackOverflow,
}
#[derive(Error, Debug)]