{"library":"pycparser","type":"library","category":null,"description":"pycparser is a complete, standards-compliant C99 parser written in pure Python, producing an Abstract Syntax Tree (AST) that can be traversed, modified, and re-emitted as C code. Current version is 3.0, released January 2026, which replaced the bundled PLY (Lex/Yacc) backend with a hand-written lexer and recursive-descent parser—eliminating all external dependencies and improving parse speed by ~30%. Release cadence is irregular; major versions are rare (2.x spanned 2012–2025).","language":"python","status":"active","version":"3.0","tags":["c","parser","ast","compiler","static-analysis","cffi","code-generation"],"install":[{"cmd":"pip install pycparser","imports":["from pycparser import c_parser\nparser = c_parser.CParser()","from pycparser import parse_file","from pycparser import c_generator\ngen = c_generator.CGenerator()","from pycparser import c_ast\nclass MyVisitor(c_ast.NodeVisitor): ..."]},{"cmd":"pip install \"pycparser<3\"","imports":[]}],"homepage":null,"github":"https://github.com/eliben/pycparser","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pycparser/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.6,"avg_import_s":0.07,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pycparser/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sat Jun 27","last_verified":"Sat Jun 27","next_check":"Mon Jul 27","install_tag":"verified"}}