anpa

Crates.ioanpa
lib.rsanpa
version0.5.0
sourcesrc
created_at2024-02-26 04:38:10.711695
updated_at2024-04-26 02:47:06.186894
descriptionA generic monadic parser combinator library inspired by Haskell's parsec.
homepage
repositoryhttps://github.com/habbbe/anpa-rs
max_upload_size
id1153013
size79,084
(habbbe)

documentation

README

anpa

A generic monadic parser combinator library based on anpa which in turn is inspired by Haskell's parsec.

Features

All parsers and combinators, with few exceptions (many_to_vec, many_to_map, many_to_map_ordered), are allocation free.

Examples

See the provided test parsers

  • JSON parser: JSON DOM parser. It's only ~30 LOC and gives a good overview on how to use the library, including recursive parsers.
  • SemVer Parser: a parser for the SemVer format

Dependencies

None

TODO

  • Add examples in doc comments
  • Add support for Read
  • More extensive test cases

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 53

cargo fmt