words definition

This commit is contained in:
2026-01-23 11:15:15 +01:00
parent a88904ed0f
commit 74f178f271
10 changed files with 237 additions and 27 deletions

View File

@@ -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),
}
}