Crates.io | rcombinators |
lib.rs | rcombinators |
version | 0.1.0 |
source | src |
created_at | 2019-06-18 18:24:11.956542 |
updated_at | 2019-06-18 18:24:11.956542 |
description | A parser combinator library in rust. |
homepage | |
repository | https://github.com/dermesser/rcombinators |
max_upload_size | |
id | 141991 |
size | 48,450 |
rcombinators
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.