words definition
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
use super::forth::Forth;
|
||||
|
||||
pub use super::forth::{ExecutionTrace, Rng, SourceSpan, StepContext, Variables};
|
||||
pub use super::forth::{Dictionary, ExecutionTrace, Rng, SourceSpan, StepContext, Variables};
|
||||
|
||||
pub struct ScriptEngine {
|
||||
forth: Forth,
|
||||
}
|
||||
|
||||
impl ScriptEngine {
|
||||
pub fn new(vars: Variables, rng: Rng) -> Self {
|
||||
pub fn new(vars: Variables, dict: Dictionary, rng: Rng) -> Self {
|
||||
Self {
|
||||
forth: Forth::new(vars, rng),
|
||||
forth: Forth::new(vars, dict, rng),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user