Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inducer/cgen
C/C++ source generation from an AST
https://github.com/inducer/cgen
abstract-syntax-tree ast c code-generation python
Last synced: 4 days ago
JSON representation
C/C++ source generation from an AST
- Host: GitHub
- URL: https://github.com/inducer/cgen
- Owner: inducer
- License: other
- Created: 2011-07-02T18:02:04.000Z (over 13 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T03:31:30.000Z (18 days ago)
- Last Synced: 2024-12-21T07:03:48.966Z (11 days ago)
- Topics: abstract-syntax-tree, ast, c, code-generation, python
- Language: Python
- Homepage: http://pypi.python.org/pypi/cgen
- Size: 299 KB
- Stars: 155
- Watchers: 9
- Forks: 33
- Open Issues: 6
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
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/workflows/CI/badge.svg?branch=main&event=push
:alt: Github Build Status
:target: https://github.com/inducer/cgen/actions?query=branch%3Amain+workflow%3ACI+event%3Apush
.. 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