Angstrom Versions Save

Parser combinators built for speed and memory efficiency

0.15.0

3 years ago
  • add support for native and ppx_let syntax (#204, @thedufer)

0.14.1

4 years ago
  • Fix bug in consumed (and consumed_bigstring) when its argument contained a commit (#199)

0.14.0

4 years ago

Breaking Changes

  • 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)

Features and Enhancements

  • improve the failure message of satisfy (#185)
  • add consumed and consumed_bigstring combinators, which take a parser t and returns a parser that produces the range of input that t consumed. (#163)
  • make pos and available part of the public API as expert, undocumented parsers. (#195)

0.13.0

4 years ago
  • Implement "trampolining" for the fix combinator when running in js_of_ocaml (#187, @hhugo)
  • Validate that the input is positive for take-like combinators (#190)

0.12.1

4 years ago
  • Fix bug introduced in #181 (#182)

0.12.0

4 years ago

Bugfixes

  • Fix bug in Input.take_while (#181)

New Features and Enhancements

  • Add int8 constructor (#171)
  • Eliminate some redundant length checks (#176)
  • Various documentation fixes (#167, #172, #177, #178, 179, #178)

0.11.2

5 years ago
  • Add bounds checking to advance (#166)

0.11.1

5 years ago
  • Port to dune (#161)
  • Fix typo in state_to_option docstring (#164)

0.11.0

5 years ago

Features

  • Implement with_buffered_parse_state for the lwt package, which in conjunction with parse allows one to continue parsing unconsumed input. (#156)

Improvements

  • Upgrade to OPAM2 (#157)
  • Various documentation fixes (#147, #149, #158, #159)

0.10.0

5 years ago

Breaking Changes

  • Add constant-checking int parsers. Translate calls to intn to get_intn (e.g., int32 becomes get_int32) when migrating to this version. (#139)

Bug Fixes

  • Fix error messages in little-endian int parsers (#141)
  • Fix bug in <|> operator that did not respect commit points (#146)

Improvements

  • Improve documentation of bigstring operations (#145, h/t @dinosaure)
  • Allow choice to specify error when all alternatives fail (#143)
  • Improve performance of some character parsers (#140)
  • Switch to using bigstringaf for bigstring operations (#138)
  • Remove references to Oasis build process in README (#137)