[go: up one dir, main page]

combine 2.1.0

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

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

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