parser-combinators

An implementation of (LL(1)) parser combinators for Rust, inspired by the Haskell library Parsec.

A parser combinators is, broadly speaking, a function which takes several parsers as arguments and returns a new parser, created by combining those parsers. For instance, the many parser takes one parser, p, as input and returns a new parser which applies p zero or more times.

The library is still unstable but if you end up trying it I welcome any feedback from your experience with it.

Build Status

Documentation and examples

crates.io

Extra

There is an additional crate which has parsers to lex and parse programming languages in parser-combinators-language.