0.3.9 |
|
---|---|
0.3.8 |
|
0.2.6 |
|
0.2.5 |
|
#10 in #val
52 downloads per month
20KB
225 lines
ox_parser
Parser Combinator crate. Provides a simple parser crate library for Rust.
Info
README is subject to change.
How to use
Look at the documentation for more examples.
let res = parse(
"Hello World",
map(
sequence!(string("Hello"), spaces(), string("World")),
|r| Ok(vec![r.val.join("")]),
),
);
assert_eq!(
res.unwrap().val,
vec!["Hello World".to_string()]
);
Dependencies
~2.2–3MB
~54K SLoC