OxParse

Crates.ioOxParse
lib.rsOxParse
version0.2.0
sourcesrc
created_at2021-08-12 14:47:14.034532
updated_at2021-08-30 10:56:07.913638
descriptionParser combinator crate
homepage
repositoryhttps://github.com/0xffset/parser-combinator
max_upload_size
id435256
size15,856
ComicalCache (ComicalCache)

documentation

README

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()]
);
Commit count: 0

cargo fmt