Struct repl_framework::Interpreter [−][src]
the interpreter struct that contains all logic and code for interpreter creation
Fields
data: HashMap<String, Arc<dyn Any>>
Implementations
impl Interpreter
[src]
impl Interpreter
[src]pub fn new() -> Interpreter
[src]
create a new blank interpreter
pub fn from_repl(repl: Repl) -> Interpreter
[src]
create an interpreter from a repl
pub fn add_function(
&mut self,
name: String,
function: fn(_: HashMap<String, Arc<dyn Any>>, _: Vec<String>)
)
[src]
&mut self,
name: String,
function: fn(_: HashMap<String, Arc<dyn Any>>, _: Vec<String>)
)
add a function to an interpreter
pub fn run(&self, filename: &str)
[src]
run the interpreter
pub fn run_debug(&self, filename: &str)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Interpreter
impl !RefUnwindSafe for Interpreter
impl !Send for Interpreter
impl !Send for Interpreter
impl !Sync for Interpreter
impl !Sync for Interpreter
impl Unpin for Interpreter
impl Unpin for Interpreter
impl !UnwindSafe for Interpreter
impl !UnwindSafe for Interpreter