# eliben/pycparser

:snake: Complete C99 parser in pure Python

Repository: https://github.com/eliben/pycparser
Canonical: https://ross.abutalabs.com/products/pycparser
Language: Python
License: NOASSERTION
License Family: other
Last push: 2026-08-24T13:04:20+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 42, longevity 100
- inputs: {"age_days": 4833, "days_push": 9, "days_rel": 224, "gap_med": 134, "n_releases_24m": 2}
- 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 3563, forks 646 (observed 2026-08-28T04:08:09.864689+00:00)

## What it is
pycparser is a complete C99 parser written in pure Python with no external dependencies. It produces an AST that can be used for static analysis, code generation, and building C language tooling.

## Use cases
- parse C source code in Python
- build a static code checker for C
- auto-generate FFI bindings from C declarations
- write a front-end for a custom C compiler
- analyze C function and type declarations
- add custom extensions to the C language

## When to choose
- you need to parse C99 code from Python
- you want a dependency-free, easy-to-tweak parser
- you're building C tooling like cffi, linters, or obfuscators

## When to avoid
- you need full GCC extension support
- you need C11/C2x features beyond the partial support
- you need a full C compiler or preprocessor

## Facets
- artifact type: library
- maturity: stable
- function: parser, compiler, developer-tools
- domain: parsers, programming-languages, developer-tools
- platform: python, cross-platform
- tags: c99, c-parser, pure-python, static-analysis, ffi, ast

## Member repositories
- eliben/pycparser (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:09.864689+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-29T18:34:11.815625+00:00, confidence not recorded.
  - readme: https://github.com/eliben/pycparser (fetched 2026-08-28T04:08:09.864689+00:00, sha 0d6d3d02cf8d)
  - registry_pypi: https://pypi.org/pypi/pycparser/json (fetched 2026-08-29T09:27:50.256267+00:00, sha 4b7cb916140e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
