7 releases (4 breaking)

Uses new Rust 2024

new 0.5.1 Apr 1, 2025
0.5.0 Apr 1, 2025
0.4.0 Mar 25, 2025
0.3.0 Jan 5, 2025
0.1.0 Dec 28, 2024

#111 in Parser tooling

Download history 86/week @ 2024-12-26 365/week @ 2025-01-02 6/week @ 2025-01-09 4/week @ 2025-02-13 1/week @ 2025-02-20 3/week @ 2025-02-27 78/week @ 2025-03-20 155/week @ 2025-03-27

233 downloads per month

MPL-2.0 license

18KB
409 lines

Komb

Komb started out as a parser combinator library, inspired by nom, winnow, combine, and the like. I wanted to keep it basic and fast. In the end, I couldn't do that, so I pivoted the crate.

Now Komb is a set of low-level parsing helpers, types, and utilities I found useful while writing parsers. The new design is heavily inspired by the macro output of the peg crate: parsers take an immutable reference to the input and the current position and return a pair of the parser output and an advanced position. You can see the ParseResult documentation for the error handling philosophy.

Aside from that there's an in-progress stub for a reporter which is supposed to be a lightweight generator of Rust-like diagnostics (similar to ariadne, miette, codespan).

Dependencies

~145KB