View Source Minipeg.Success (Minipeg v0.2.6)
A success result
Summary
Types
@type ast_list_t() :: [ast_t()]
@type ast_t() :: any()
@type binaries() :: [binary()]
@type either(success_t, error_t) :: {:ok, success_t} | {:error, error_t}
@type input_t() :: binary() | [binary()] | Minipeg.Input.t()
@type maybe(t) :: nil | t
@type parser_function_t() :: (Minipeg.Input.t(), Minipeg.Cache.t(), binary() -> result_t())
@type result_t() :: Minipeg.Failure.t() | t()
@type satisfier_t() :: (any() -> satisfier_result_t())
@type str_or_count_t() :: binary() | non_neg_integer()
@type t() :: %Minipeg.Success{ ast: any(), cache: Minipeg.Cache.t(), rest: Minipeg.Input.t() }
Functions
@spec succeed(ast_t(), Minipeg.Input.t(), Minipeg.Cache.t()) :: t()