Skip to content

inducer/cgen

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 23, 2022 02:11
doc
April 30, 2023 14:57
November 10, 2015 15:58
December 1, 2020 18:57
June 22, 2020 23:40
August 26, 2020 19:42
October 9, 2016 17:41
October 9, 2016 17:41
May 11, 2022 10:24
May 9, 2022 17:16

cgen: An Abstract Syntax Tree for C, in Python

Gitlab Build Status Github Build Status Python Package Index Release Page

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:

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