diff --git a/dust-lang/examples/interpreter_async.rs b/dust-lang/examples/interpreter_async.rs
index 7e2432a..1b3a985 100644
--- a/dust-lang/examples/interpreter_async.rs
+++ b/dust-lang/examples/interpreter_async.rs
@@ -4,7 +4,6 @@ use std::{
time::Duration,
};
-use context::Context;
use dust_lang::*;
fn run_fibnacci(interpreter: &Interpreter, i: u8) -> Value {
@@ -30,13 +29,15 @@ fn run_fibnacci(interpreter: &Interpreter, i: u8) -> Value {
}
fn main() {
- let interpreter = Interpreter::new(Context::new());
+ let interpreter = Interpreter::new();
let (tx, rx) = channel();
for i in 1..10 {
let interpreter = interpreter.clone();
let tx = tx.clone();
+ println!("Spawning thread for fib({})", i);
+
thread::spawn(move || {
let value = run_fibnacci(&interpreter, i);
diff --git a/dust-lang/src/lib.rs b/dust-lang/src/lib.rs
index cb0f8c7..7ecbd8b 100644
--- a/dust-lang/src/lib.rs
+++ b/dust-lang/src/lib.rs
@@ -23,6 +23,7 @@ use std::{
};
pub use abstract_tree::Type;
+use standard_library::core_context;
pub use value::Value;
use abstract_tree::AbstractTree;
@@ -33,7 +34,7 @@ use lexer::{lex, Token};
use parser::{parse, parser};
pub fn interpret(source_id: &str, source: &str) -> Result