ox_parser

Crates.ioox_parser
lib.rsox_parser
version0.3.9
sourcesrc
created_at2021-08-30 14:51:42.10044
updated_at2022-02-20 15:06:15.87049
descriptionParser combinator crate. Provides a simple parser combinator crate for Rust.
homepage
repositoryhttps://github.com/0xffset/parser-combinator
max_upload_size
id444325
size25,856
ComicalCache (ComicalCache)

documentation

README

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

cargo fmt