# orangeduck/mpc

A Parser Combinator library for C

Repository: https://github.com/orangeduck/mpc
Canonical: https://ross.abutalabs.com/products/mpc
Language: C
License: NOASSERTION
License Family: other
Last push: 2025-08-10T23:14:43+00:00

## Health v2 (maintenance only)
Score: 39/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 36, release rhythm 8, longevity 100
- inputs: {"age_days": 4724, "days_push": 388, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2851, forks 304 (observed 2026-08-28T04:07:25.666577+00:00)

## What it is
mpc is a lightweight parser combinator library for C, shipped as a single ANSI C source file. It supports type-generic parsers, predictive recursive descent parsing, automatic error message generation, and regex/grammar parser generators.

## Use cases
- build a new programming language in C
- parse an existing programming language
- define and parse a custom data format
- embed a domain-specific language in a C application
- generate parsers from regular expressions or grammar definitions

## When to choose
- you need a small, dependency-free parser library in plain C
- you want quick parser construction with combinators instead of writing a lexer/parser by hand
- you want automatic error message generation for your grammar

## When to avoid
- you need high-performance or highly optimized parsing for large inputs
- you prefer parser generator tools like yacc, bison, or ANTLR
- you are working outside C

## Facets
- artifact type: library
- maturity: stable
- function: parser
- domain: parsers, programming-languages, developer-tools
- platform: cross-platform, c
- tags: parser-combinators, dsl, grammar, recursive-descent, ansi-c, single-file

## Member repositories
- orangeduck/mpc (main) score 39

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:25.666577+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:54.117531+00:00, confidence not recorded.
  - readme: https://github.com/orangeduck/mpc (fetched 2026-08-28T04:07:25.666577+00:00, sha 3a6ff2df495e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
