parlib 0.1.1

A barebones parser combinator library, inspired by Haskells parsec
Documentation
  • Coverage
  • 23.75%
    19 out of 80 items documented4 out of 38 items with examples
  • Size
  • Source code size: 29.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 7.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • angelcerveraroldan/parlib
    3 0 2
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • angelcerveraroldan

A minimalistic Parser Combinator Library

A very minimal parser combinator library.

Example/s

These can be seen inside the examples directory.

  • A json parser made with this library. This took about 130 lines (excluding testing)

To run any of them, siply run cargo run --example <name>.

Features

Supports parsing of UTF-8 characters, not just ASCII.

Right now you can create (let a, b be types):

  • Parser a
  • Parser (a and b)
  • Parser (a or b)
  • Parser (f a)

Todo's

  • Better Error handing
  • Parser bytes instead of characters

Notes

Error Handing

At some point it should use this_error, and miette.