pinchpi_eval (pinchpi v0.1.0)
Summary
Functions
-spec current_file() -> binary().
-spec current_line() -> pos_integer().
-spec emit_php_error(integer(), binary(), non_neg_integer(), pinchpi_context:ctx()) -> pinchpi_context:ctx().
-spec emit_php_error_or_throw(integer(), binary(), non_neg_integer(), pinchpi_context:ctx()) -> {ok | {throw, term()}, pinchpi_context:ctx()}.
-spec eval_ast([pinchpi_struct:struct_map()], pinchpi_context:ctx()) -> {term(), pinchpi_context:ctx()}.
-spec eval_expr(pinchpi_struct:struct_map(), pinchpi_context:ctx()) -> {term(), pinchpi_context:ctx()}.
-spec run(binary()) -> {ok, binary(), term()} | {error, pinchpi_parser:parse_error()}.
-spec run(binary(), map()) -> {ok, binary(), term()} | {error, pinchpi_parser:parse_error()}.
-spec throw_php_error(binary(), binary(), pinchpi_context:ctx()) -> {{throw, term()}, pinchpi_context:ctx()}.
-spec to_php_string_ctx(term(), pinchpi_context:ctx()) -> {binary() | {throw, term()}, pinchpi_context:ctx()}.