parlib

Crates.ioparlib
lib.rsparlib
version0.1.1
created_at2025-03-19 15:22:45.180152+00
updated_at2025-03-19 15:28:54.775727+00
descriptionA barebones parser combinator library, inspired by Haskells parsec
homepage
repositoryhttps://github.com/angelcerveraroldan/parlib
max_upload_size
id1598139
size30,412
Angel Cervera Roldan (angelcerveraroldan)

documentation

README

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.

Commit count: 22

cargo fmt