Fold runtime/ crate into this source tree

While I like the idea of having a runtime completely decoupled from the
syntax and compiler, I don't think this is that big of a project for
that to be necessary or even useful yet.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-09-14 14:14:21 -07:00
parent 8e2cbb10a4
commit 372e58f620
21 changed files with 12 additions and 25 deletions

View File

@@ -17,10 +17,13 @@ lrpar = "0.9"
lrlex = "0.9" lrlex = "0.9"
structopt = "0.3" structopt = "0.3"
snafu = "0.6.6" snafu = "0.6.6"
maplit = "1.0.2"
once_cell = "1.4.1"
#lazy_static = "1.4.0" #lazy_static = "1.4.0"
#regex = "1.3.7" #regex = "1.3.7"
#derivative = "2.1.1" #derivative = "2.1.1"
[dependencies.runtime] [dependencies.shredder]
path = "runtime" git = "https://github.com/Others/shredder"
features = ["nightly-features"]

View File

@@ -1,15 +0,0 @@
[package]
name = "runtime"
version = "0.1.0"
authors = ["Alek Ratzloff <alekratz@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
maplit = "1.0.2"
once_cell = "1.4.1"
[dependencies.shredder]
git = "https://github.com/Others/shredder"
features = ["nightly-features"]

View File

@@ -1,4 +0,0 @@
#![feature(unsize, coerce_unsized)]
#[macro_use] pub mod obj;
#[macro_use] pub mod vm;

View File

@@ -1,7 +1,7 @@
pub mod thunk; pub mod thunk;
pub mod error; pub mod error;
use runtime::{obj::prelude::*, vm::consts::*}; use crate::{obj::prelude::*, vm::consts::*};
use std::collections::HashMap; use std::collections::HashMap;
pub struct Compile<'t> { pub struct Compile<'t> {

View File

@@ -1,8 +1,9 @@
use crate::{ use crate::{
compile::{error::*, Compile}, compile::{error::*, Compile},
syn::{ast::*, visit::*}, syn::{ast::*, visit::*},
obj::prelude::*,
vm::inst::*
}; };
use runtime::{obj::prelude::*, vm::inst::*};
use std::mem; use std::mem;
pub enum Thunk { pub enum Thunk {

View File

@@ -1,4 +1,6 @@
#![feature(unsize, coerce_unsized)]
pub mod syn; pub mod syn;
pub mod compile; pub mod compile;
pub mod obj;
pub use runtime; pub mod vm;