about summary refs log blame commit diff
path: root/users/tazjin/rlox/src/bytecode/errors.rs
blob: 89ab1867a4e65dcfdfed4e949f9e31554957b91e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
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>;