#parser-combinator #change #subject

yanked OxParse

Parser combinator crate

0.2.0 Aug 30, 2021
0.1.1 Aug 29, 2021
0.1.0 Aug 12, 2021

#26 in #subject

34 downloads per month

MIT license

16KB
430 lines

0xParser

Parser Combinator crate.

Info

README is subject to change.

How to use

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()]
);

Dependencies

~2–3MB
~54K SLoC