[][src]Struct ruschm::interpreter::Interpreter

pub struct Interpreter<'a> { /* fields omitted */ }

Implementations

impl<'a> Interpreter<'a>[src]

pub fn new() -> Self[src]

pub fn define<'b>(
    &'a self,
    definition: &Definition,
    env: &'b RefCell<Environment<'b>>
) -> Result<(), Error>
[src]

pub fn eval_root_expression(
    &'a self,
    expression: Expression
) -> Result<ValueType, Error>
[src]

pub fn eval_expression<'b>(
    &'a self,
    expression: &Expression,
    env: &'b RefCell<Environment<'b>>
) -> Result<ValueType, Error>
[src]

pub fn eval_ast<'b>(
    &'a self,
    ast: &Statement,
    env: &'b RefCell<Environment<'b>>
) -> Result<Option<ValueType>, Error>
[src]

pub fn eval_root_ast(
    &'a self,
    ast: &Statement
) -> Result<Option<ValueType>, Error>
[src]

pub fn eval_program(
    &'a self,
    asts: impl IntoIterator<Item = &'a Statement>
) -> Result<Option<ValueType>, Error>
[src]

pub fn eval(
    &'a self,
    char_stream: impl Iterator<Item = char>
) -> Result<Option<ValueType>, Error>
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Interpreter<'a>

impl<'a> Send for Interpreter<'a>

impl<'a> !Sync for Interpreter<'a>

impl<'a> Unpin for Interpreter<'a>

impl<'a> UnwindSafe for Interpreter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.