Some instructions are currently implemented. Others are not. This is mostly just a checkpoint so I can implement lexical name definitions. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
14 lines
258 B
Rust
14 lines
258 B
Rust
use snafu::Snafu;
|
|
|
|
#[derive(Debug, Snafu)]
|
|
pub enum Error {
|
|
#[snafu(display("invalid assignment target"))]
|
|
InvalidLhs,
|
|
|
|
#[snafu(display("invalid object attribute"))]
|
|
InvalidAttr,
|
|
}
|
|
|
|
pub type Result<T, E = Error> = std::result::Result<T, E>;
|
|
|