chonk 0.2.0

A lightweight parser combinator framework.
Documentation

Chonk 0.2

A lightweight parser combinator framework.

Usage

use chonk::prelude::*;

fn my_parser<'a>() -> impl Parser<'a, &'a str, ()> {
    move |ctx| {
        is("abc").parse(ctx)
    }
}

if my_parser().test("abcd") {
    println!("It matches!");
}