Logo
Explore Help
Sign In
intercal/not-python
1
0
Fork 0
You've already forked not-python
Code Issues Pull Requests Releases Wiki Activity
Files
9169f5970e089c11511b0b31e62c604880a24445
not-python/src/compile/error.rs

14 lines
258 B
Rust
Raw Normal View History

General changes across the runtime crate in support of compile module * Compile module is able to compile bytecode (or so it seems...) * Runtime crate has had some new stuff added to it, mostly with objects and vtables. Still not 100% on the object method function call story, but I guess it'll be tackled when we get there. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-09-14 14:09:29 -07:00
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>;
Add some base VM implementations 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>
2020-09-14 16:32:00 -07:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 42ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API