Files
2026-10-04 04:07:15 +00:00

11 lines
420 B
Plaintext

cgen offers a simple abstract syntax tree for C and related languages
(C++/CUDA/OpenCL) to allow structured code generation from Python.
cgen can be used to generate C code programmatically, which is useful for:
- Code generators
- Domain-specific language compilers
- High-performance computing applications
- GPU kernel generation (CUDA/OpenCL)
To represent mathematical expressions, cgen can be used with pymbolic.