pcomb: parser combinators

repo: sr.ht issues: sr.ht patches: sr.ht

crates.io downloads docs.rs license unsafe: 2

This is a tiny parser combinator library for rust. Combinators allow the ability to easily compose several parsing functions to produce a larger parser with easy control over output types and control flow. This library can currently statically parse any slice type, including generic ones.

See the documentation for [parse] to get started. And see the examples folder for a complete parsing example or run cargo run --example math inside the project.

Features

This crate defines a few features. All features are enabled by default.