rcombinators 0.1.0

A parser combinator library in rust.
Documentation
  • Coverage
  • 64.52%
    40 out of 62 items documented2 out of 38 items with examples
  • Size
  • Source code size: 49.87 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 10.62 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • dermesser/rcombinators
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • dermesser

rcombinators

Build Status

rcombinators is a Rust version of the pcombinators library, providing parser combinators in Rust. As opposed to some other parser libraries it works without much magic syntax for users; however this also means a bit more boilerplate and occasionally less performance due to the "pedestrian" way of doing things.

Compared to pcombinators we still achieve up to 100x more throughput as well as type safety, making writing parsers less error-prone.

An example of a working parser can be found in examples/json/, which is a working yet simplistic JSON parser (it doesn't work with escaped characters in strings, for example), demonstrating how to combine the parsers provided by rcombinators.