Search in sources :

Example 1 with LazyFunInstructionExecutor

use of suite.instructionexecutor.LazyFunInstructionExecutor in project suite by stupidsing.

the class EvaluateUtil method configureFunExecutor.

private FunInstructionExecutor configureFunExecutor(FunCompilerConfig fcc) {
    Node node = fccNodeFun.apply(fcc.isLazy());
    Node code = doFcc(node, fcc);
    if (code != null)
        if (fcc.isLazy())
            return new LazyFunInstructionExecutor(code);
        else
            return new EagerFunInstructionExecutor(code);
    else
        return Fail.t("function compilation failure");
}
Also used : EagerFunInstructionExecutor(suite.instructionexecutor.EagerFunInstructionExecutor) Node(suite.node.Node) LazyFunInstructionExecutor(suite.instructionexecutor.LazyFunInstructionExecutor)

Aggregations

EagerFunInstructionExecutor (suite.instructionexecutor.EagerFunInstructionExecutor)1 LazyFunInstructionExecutor (suite.instructionexecutor.LazyFunInstructionExecutor)1 Node (suite.node.Node)1