diff options
Diffstat (limited to 'users/tazjin/rlox/src/bytecode/errors.rs')
-rw-r--r-- | users/tazjin/rlox/src/bytecode/errors.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/users/tazjin/rlox/src/bytecode/errors.rs b/users/tazjin/rlox/src/bytecode/errors.rs new file mode 100644 index 000000000000..89ab1867a4e6 --- /dev/null +++ b/users/tazjin/rlox/src/bytecode/errors.rs @@ -0,0 +1,13 @@ +#[derive(Debug)] +pub enum ErrorKind { + // CompileError, + // RuntimeError, + InternalError(&'static str), +} + +#[derive(Debug)] +pub struct Error { + pub kind: ErrorKind, +} + +pub type LoxResult<T> = Result<T, Error>; |