예제 #1
0
    public static NeuOperation Execute(
        this NeuInterpreter interpreter,
        NeuFuncDecl funcDecl)
    {
        var name = funcDecl.GetName();

        if (name == null)
        {
            throw new Exception();
        }

        ///

        var func = interpreter.CreateFunc(name, null, null, null, funcDecl);

        if (func == null)
        {
            throw new Exception();
        }

        ///

        return(func);
    }