python-pycparser
Port variant v14
Summary C parser in Python (3.14)
Package version 3.0
Homepage https://github.com/eliben/pycparser
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v13
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 21 JAN 2026, 17:47:13 UTC
Port created 18 SEP 2018, 18:56:45 UTC
Subpackage Descriptions
single =============== pycparser v3.00 =============== ---- .. contents:: :backlinks: none .. sectnum:: Introduction ============ What is pycparser? ------------------ **pycparser** is a parser for the C language, written in pure Python. It is a module designed to be easily integrated into applications that need to parse C source code. What is it good for? -------------------- Anything that needs C code to be parsed. The following are some uses for **pycparser**, taken from real user reports: * C code obfuscator * Front-end for various specialized C compilers * Static code checker * Automatic unit-test discovery * Adding specialized extensions to the C language One of the most popular uses of **pycparser** is in the [cffi ] library, which uses it to parse the declarations of C functions and types in order to auto-generate FFIs. **pycparser** is unique in the sense that it's written in pure Python - a very high level language that's easy to experiment with and tweak. To people familiar with Lex and Yacc, **pycparser**'s code will be simple to understand. It also has no external dependencies (except for a Python interpreter), making it very simple to install and deploy. Which version of C does pycparser support? ------------------------------------------ **pycparser** aims to support the full C99 language (according to the standard ISO/IEC 9899). Some features from C11 are also supported, and patches to support more are welcome. **pycparser** supports very few GCC extensions, but it's fairly easy to set things up so that it parses code with a lot of GCC-isms successfully. See the [FAQ] for more details. What grammar does pycparser follow? ----------------------------------- **pycparser** very closely follows the C grammar provided in Annex A of the C99 standard (ISO/IEC 9899). How is pycparser licensed? -------------------------- [BSD license]. Contact details --------------- For reporting problems with **pycparser** or submitting feature requests, please open an [issue], or submit a pull request. Installing ========== Prerequisites ------------- **pycparser** is being tested with modern versions of Python on Linux, macOS and Windows. See [the CI dashboard] for details. **pycparser** has no external dependencies. Installation process -------------------- The recommended way to install **pycparser** is with pip::
Configuration Switches (platform-specific settings discarded)
PY313 OFF Build using Python 3.13 PY314 ON Build using Python 3.14
Package Dependencies by Type
Build (only) python314:dev:std
python-pip:single:v14
autoselect-python:single:std
Build and Runtime python314:primary:std
Download groups
main mirror://PYPIWHL/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3
Distribution File Information
b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992 48172 python-src/pycparser-3.0-py3-none-any.whl
Ports that require python-pycparser:v14
python-cffi:v14 Foreign Function Interface, C (3.14)