# cgen **Repository Path**: mirrors_inducer/cgen ## Basic Information - **Project Name**: cgen - **Description**: C/C++ source generation from an AST - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-11-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README cgen: An Abstract Syntax Tree for C, in Python ---------------------------------------------- .. image:: https://gitlab.tiker.net/inducer/cgen/badges/main/pipeline.svg :alt: Gitlab Build Status :target: https://gitlab.tiker.net/inducer/cgen/commits/main .. image:: https://github.com/inducer/cgen/actions/workflows/ci.yml/badge.svg :alt: Github Build Status :target: https://github.com/inducer/cgen/actions/workflows/ci.yml .. image:: https://badge.fury.io/py/cgen.svg :alt: Python Package Index Release Page :target: https://pypi.org/project/cgen/ cgen offers a simple abstract syntax tree for C and related languages (C++/CUDA/OpenCL) to allow structured code generation from Python. To represent mathematical expressions, cgen can be used with `pymbolic `__. Places on the web related to cgen: * `Python package index `__ (download releases) * `Documentation `__ (read how things work) * `Github `__ (get latest source code, file bugs) cgen is licensed under the liberal `MIT license `__ and free for commercial, academic, and private use. All of cgen's dependencies can be automatically installed from the package index after using:: pip install cgen