Crates.io | OxParse |
lib.rs | OxParse |
version | 0.2.0 |
source | src |
created_at | 2021-08-12 14:47:14.034532 |
updated_at | 2021-08-30 10:56:07.913638 |
description | Parser combinator crate |
homepage | |
repository | https://github.com/0xffset/parser-combinator |
max_upload_size | |
id | 435256 |
size | 15,856 |
Parser Combinator crate.
README is subject to change.
let res = parse(
"Hello World",
map(
sequence(vec![string("Hello"), spaces(), string("World")]),
|r| Ok(vec![r.join("")]),
),
);
assert_eq!(
res.unwrap().val,
vec!["Hello World".to_string()]
);