lib/executor/index.js
function execute(ast, ctx, done) {
    if (!done && !(ctx instanceof ExecutionContext)) {
        done = ctx;
        ctx = new ExecutionContext();
    }

    ast.execute(ctx, done);
}
function execute(ast, ctx, done) {
    if (!done && !(ctx instanceof ExecutionContext)) {
        done = ctx;
        ctx = new ExecutionContext();
    }

    ast.execute(ctx, done);
}
Executes the abstract syntax tree

@param {AbstractSyntaxTree} ast The tree to execute
@param {exports.ExecutionContext|ExecutionContext|Function?} ctx The context
@param {Function?} done Called when execution is complete