Back to Explore

eliben/pycparser

GitHub
1 watchersOpen source

Last release:

pycparser is a complete C99 parser written in pure Python, designed to parse C source code for applications that need to analyze or transform it. It is useful for tasks like static code checking, building a front end for specialized C compilers, and generating information such as unit-test discovery, and it can integrate with CFFI to parse C function and type declarations.

Project status

  • Actively maintained: Evidence includes a very recent upstream push on 2026-08-24 (close to today, 2026-09-10), and the project has shipped major updates as recently as 2026-01-21.
  • Update cadence: Not strictly regular, but the pattern shows long gaps followed by more frequent activity, with the last few update points at 2024-03-30, 2025-09-09, and 2026-01-21, plus continued activity in Aug 2026.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • release_v3.00

    Release v3.00 removes the PLY dependency by replacing the C parsing pipeline with a hand-written lexer and recursive-descent parser, with the intent to keep the same AST output. The release also updates CI/tooling to support Python 3.14 and refreshes project metadata for modern packaging.

    Features
  • release_v2.23

    pycparser v2.23 adds several grammar support fixes (abstract declarator with static, labels/case/default with empty statements, and comment handling) and improves correctness for hex float typing. It also updates CI to test against Python 3.13 and adds new fake typedefs for GNU integer extensions and some common Linux types.

    Features
  • release_v2.22

    Release v2.22 of pycparser updates parsing capabilities and broadens interpreter support. It adds pragma support (and fixes related parsing behavior), extends parse_file with an encoding parameter, and improves table caching behavior during build. It also adds support for Python 3.11 and 3.12.

    Features