Skip to content

angelcerveraroldan/mini_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A barebones parser combinator library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages