Crates.io | komb |
lib.rs | komb |
version | 0.5.1 |
created_at | 2024-12-28 10:22:43.994+00 |
updated_at | 2025-04-01 17:58:42.651881+00 |
description | Low-level parsing utilities |
homepage | |
repository | https://github.com/kaathewisegit/komb |
max_upload_size | |
id | 1497332 |
size | 46,178 |
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
).