Single header Parser Combinators for C
CParseC is a single-header library providing parser combinator functions for the C programming language, allowing developers to build parsers declaratively by combining smaller parsing functions.
Background
Parser combinators are a functional programming technique that lets you build complex parsers by composing small, reusable parsing functions — think of them like LEGO blocks for text processing. They are common in languages like Haskell and Scala but rare in C.
CParseC is a single-header C library that brings parser combinators to C. It was created by Steve Chávez, a developer known for work on the PostgREST project (which turns a PostgreSQL database into a REST API). The library is minimal (one .h file, no build system needed), making it easy to drop into any C project.