pinchpi_eval (pinchpi v0.1.0)

Summary

Functions

current_file()

-spec current_file() -> binary().

current_line()

-spec current_line() -> pos_integer().

emit_php_error(Level, Msg, Line, Ctx)

-spec emit_php_error(integer(), binary(), non_neg_integer(), pinchpi_context:ctx()) ->
                        pinchpi_context:ctx().

emit_php_error_or_throw(Level, Msg, Line, Ctx)

-spec emit_php_error_or_throw(integer(), binary(), non_neg_integer(), pinchpi_context:ctx()) ->
                                 {ok | {throw, term()}, pinchpi_context:ctx()}.

eval_ast(AST, Ctx)

eval_binop_checked(Op, LVal, RVal, Ctx)

eval_expr(Node, Ctx)

eval_index_get(Arr, Key)

-spec eval_index_get(term(), term()) -> term().

eval_pass_by_ref_arg(Expr, FuncName, Idx, ParamName, Ctx)

format_trace(Stack)

format_trace_entries(Stack, ArgsList, IncludeMain)

-spec format_trace_entries([{binary(), integer()}], [{binary(), [term()]}] | undefined, boolean()) ->
                              binary().

lookup_var(Name, Line, Ctx)

run(Source)

-spec run(binary()) -> {ok, binary(), term()} | {error, pinchpi_parser:parse_error()}.

run(Source, Opts)

-spec run(binary(), map()) -> {ok, binary(), term()} | {error, pinchpi_parser:parse_error()}.

throw_php_error(Cls, Msg, Ctx)

-spec throw_php_error(binary(), binary(), pinchpi_context:ctx()) ->
                         {{throw, term()}, pinchpi_context:ctx()}.

to_php_bool(F)

-spec to_php_bool(term()) -> boolean().

to_php_string(Bin)

-spec to_php_string(term()) -> binary().

to_php_string_ctx(Obj, Ctx)

-spec to_php_string_ctx(term(), pinchpi_context:ctx()) ->
                           {binary() | {throw, term()}, pinchpi_context:ctx()}.

unwrap_ref_return(_)

write_error_log(Msg)

-spec write_error_log(binary()) -> ok | {error, term()}.