pub trait Interpretable {
    fn interpret(&self, heap: &mut Heap) -> JSResult<Interpreted>;

    fn evaluate(&self, heap: &mut Heap) -> JSResult<JSValue> { ... }
}
Expand description

Describes things (i.e. AST nodes, Function) that can be interpreted on a Heap

Required Methods

Interpret self on the heap, potentially to a settable Interpreted::Member.

Provided Methods

A wrapper for .interpret that also resolves the result to JSValue

Implementors