parser-combinators 0.6.0

Parser combinators based on the Haskell library parsec
Documentation
1
2
3
4
5
6
7
8
9
10

extern crate parser_combinators;
use parser_combinators::{many, Parser};
use parser_combinators::char::letter;

#[test]
fn readme() {
    let result = many(letter()).parse("hello world");
    assert_eq!(result, Ok(("hello".to_string(), " world")));
}