Skip to main content

C/C++ source generation from an AST

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cgen-2025.1.tar.gz (19.2 kB view details)

Uploaded Source

File details

Details for the file cgen-2025.1.tar.gz.

File metadata

  • Download URL: cgen-2025.1.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cgen-2025.1.tar.gz
Algorithm Hash digest
SHA256 79f01e010d49c13e58b4ca8f2d4996a6b7178968f5f2d906262733480ae7a2d4
MD5 3eec522c3b0b6cfdb20621c5257ccd35
BLAKE2b-256 184ba84a2fd2abce1c7bdef848ef7e7763f9447040e01514f741f8c7dfae1bab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page