Parser combinators built for speed and memory efficiency
consumed
(and consumed_bigstring
) when its argument contained a commit
(#199)count
fails if its argument is negative, rather than raising. (#192)parse_string
and parse_bigstring
take a required consume
argument, specifying whether the parse is expected to consume a prefix of the input, or the entire input. The previous behavior was Prefix
. (#196)satisfy
(#185)consumed
and consumed_bigstring
combinators, which take a parser t
and returns a parser that produces the range of input that t
consumed. (#163)pos
and available
part of the public API as expert, undocumented parsers. (#195)fix
combinator when running in js_of_ocaml (#187, @hhugo)take
-like combinators (#190)advance
(#166)state_to_option
docstring (#164)intn
to get_intn
(e.g., int32
becomes get_int32
) when migrating to this version. (#139)<|>
operator that did not respect commit points (#146)choice
to specify error when all alternatives fail (#143)