Struct repl_framework::Interpreter [−][src]
pub struct Interpreter { /* fields omitted */ }
the interpreter struct that contains all logic and code for interpreter creation
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(_: Vec<String>))
[src]
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