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:
Vincent Ambo 2021-01-17 23:03:41 +03:00 committed by tazjin
parent b1d0e22b1f
commit 7fb93fb490
7 changed files with 89 additions and 25 deletions

View 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>;