pinchpi_func (pinchpi v0.1.0)

Summary

Functions

call(Name, ArgNodes, Ctx)

eval_args(ArgNodes, Ctx)

-spec eval_args([pinchpi_struct:struct_map()], pinchpi_context:ctx()) ->
                   {[{binary() | undefined, term()}], pinchpi_context:ctx()}.

eval_args_for_params(FuncName, Params, ArgNodes, Ctx)

first_throw(Rest)

-spec first_throw([{binary() | undefined, term()}]) -> {ok, {throw, term()}} | error.

get_call_args()

get_call_stack()

invoke_body(Params, Env, Body, EvalArgs, Ctx)

-spec invoke_body([pinchpi_struct:struct_map()],
                  #{binary() => term()},
                  pinchpi_struct:struct_map(),
                  [{binary() | undefined, term()}],
                  pinchpi_context:ctx()) ->
                     {term(), pinchpi_context:ctx()}.

invoke_callable(Callee, EvalArgs, Ctx)

-spec invoke_callable(term(), [{binary() | undefined, term()}], pinchpi_context:ctx()) ->
                         {term(), pinchpi_context:ctx()}.

make_arrow(_, Ctx)

make_closure(_, Ctx)

with_call_stack(Name, Line, Fun)

-spec with_call_stack(binary(), integer(), fun(() -> T)) -> T.

with_call_stack(Name, Line, Args, Fun)

-spec with_call_stack(binary(), integer(), [term()], fun(() -> T)) -> T.

with_internal_call(Fun)

-spec with_internal_call(fun(() -> T)) -> T.