Trait boa::exec::Executor

source ·
pub trait Executor {
    fn new() -> Self;
    fn set_global(&mut self, name: String, val: Value) -> Value;
    fn get_global(&self, name: String) -> Value;
    fn make_scope(&mut self, this: Value) -> Scope;
    fn destroy_scope(&mut self) -> Scope;
    fn run(&mut self, expr: &Expr) -> ResultValue;
}
Expand description

An execution engine

Required Methods

Make a new execution engine

Set a global variable called name with the value val

Resolve the global variable name

Create a new scope and return it

Destroy the current scope

Run an expression

Implementors