oni-comb-parser-rs

Install to Cargo.toml

Add this to your Cargo.toml:

toml [dependencies] oni-comb-parser-rs = "<<version>>"

Usage

```rust use onicombparser_rs::prelude::*;

fn main() { let input: &[u8; 14] = b"'hello world';";

let parser: Parser = surround( elm(b'\''), (seq(b"hello") + elmspace() + seq(b"world")).collect(), elm(b'\'') + elm(b';'), ) .mapres(std::str::from_utf8); let result: &str = parser.parse(input).unwrap();

println!("{}", result); // hello world } ```

Influenced by the following parsers implementations.

Examples

Alternative parsers