Struct badder_lang::Interpreter
source · pub struct Interpreter<O: Overseer> { /* private fields */ }
Implementations§
source§impl<O: Overseer> Interpreter<O>
impl<O: Overseer> Interpreter<O>
pub fn new(max_stack_len: usize, overseer: O) -> Interpreter<O>
pub fn evaluate(&mut self, ast: &Ast) -> Result<Int, BadderError>
Trait Implementations§
source§impl Default for Interpreter<NoOverseer>
impl Default for Interpreter<NoOverseer>
source§fn default() -> Interpreter<NoOverseer>
fn default() -> Interpreter<NoOverseer>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<O> RefUnwindSafe for Interpreter<O>where
O: RefUnwindSafe,
impl<O> Send for Interpreter<O>where
O: Send,
impl<O> Sync for Interpreter<O>where
O: Sync,
impl<O> Unpin for Interpreter<O>where
O: Unpin,
impl<O> UnwindSafe for Interpreter<O>where
O: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more