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
233 downloads per month
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