feat(tazjin/rlox): Bootstrap VM for Lox bytecode
Change-Id: I479e20bf2087e5c4aa20e31b364c57ed0d961bcf Reviewed-on: https://cl.tvl.fyi/c/depot/+/2416 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
b1d0e22b1f
commit
7fb93fb490
7 changed files with 89 additions and 25 deletions
13
users/tazjin/rlox/src/bytecode/errors.rs
Normal file
13
users/tazjin/rlox/src/bytecode/errors.rs
Normal file
|
|
@ -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>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue