add execute

This commit is contained in:
2020-05-08 00:57:57 +08:00
parent 6c967d14ea
commit 382b604f39
3 changed files with 214 additions and 9 deletions

View File

@@ -5,3 +5,15 @@ pub enum ParseError {
#[error(display = "error syntax: {:?}", _0)]
ErrorSyntax(String),
}
#[derive(Debug, Error)]
pub enum RuntimeError {
#[error(display = "error vm state: {:?}", _0)]
ErrorVmState(String),
#[error(display = "end vm")]
EndVm,
#[error(display = "not implemented: {:?}", _0)]
NotImplemented(String),
}