Some kind of refactoring
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
use cagire_forth::Forth;
|
||||
|
||||
pub use cagire_forth::{
|
||||
CcAccess, Dictionary, ExecutionTrace, Rng, SourceSpan, StepContext, Value, Variables,
|
||||
};
|
||||
use cagire_forth::{Dictionary, ExecutionTrace, Forth, Rng, StepContext, Value, Variables};
|
||||
|
||||
pub struct ScriptEngine {
|
||||
forth: Forth,
|
||||
@@ -27,4 +23,8 @@ impl ScriptEngine {
|
||||
) -> Result<Vec<String>, String> {
|
||||
self.forth.evaluate_with_trace(script, ctx, trace)
|
||||
}
|
||||
|
||||
pub fn stack(&self) -> Vec<Value> {
|
||||
self.forth.stack()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user