All Projects → inducer → Cgen

inducer / Cgen

Licence: other
C/C++ source generation from an AST

Programming Languages

python
139335 projects - #7 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Cgen

Javaparser
Java 1-15 Parser and Abstract Syntax Tree for Java, including preview features to Java 13
Stars: ✭ 3,972 (+3612.15%)
Mutual labels:  ast, abstract-syntax-tree, code-generation
Spoon
Spoon is a metaprogramming library to analyze and transform Java source code (up to Java 15). 🥄 is made with ❤️, 🍻 and ✨. It parses source files to build a well-designed AST with powerful analysis and transformation API.
Stars: ✭ 1,078 (+907.48%)
Mutual labels:  ast, abstract-syntax-tree, code-generation
abstract-syntax-tree
A library for working with abstract syntax trees.
Stars: ✭ 77 (-28.04%)
Mutual labels:  ast, abstract-syntax-tree
CastXMLSuperbuild
Build CastXML and its dependencies (LLVM/Clang)
Stars: ✭ 32 (-70.09%)
Mutual labels:  ast, abstract-syntax-tree
verilogAST-cpp
C++17 implementation of an AST for Verilog code generation
Stars: ✭ 14 (-86.92%)
Mutual labels:  ast, abstract-syntax-tree
codeparser
Parse Wolfram Language source code as abstract syntax trees (ASTs) or concrete syntax trees (CSTs)
Stars: ✭ 84 (-21.5%)
Mutual labels:  ast, abstract-syntax-tree
Python3Generator
A toolkit to generate Python 3 source code from Pharo.
Stars: ✭ 25 (-76.64%)
Mutual labels:  ast, code-generation
coAST
Universal and language-independent abstract syntax tree
Stars: ✭ 30 (-71.96%)
Mutual labels:  ast, abstract-syntax-tree
Bellybutton
Custom Python linting through AST expressions
Stars: ✭ 196 (+83.18%)
Mutual labels:  ast, abstract-syntax-tree
ast-builder
Build your ASTs directly from code
Stars: ✭ 18 (-83.18%)
Mutual labels:  ast, abstract-syntax-tree
I18nize React
Internationalize react apps within a lunch break
Stars: ✭ 389 (+263.55%)
Mutual labels:  ast, abstract-syntax-tree
open-fortran-parser-xml
XML output generator for Open Fortran Parser, and Python wrapper for it.
Stars: ✭ 21 (-80.37%)
Mutual labels:  ast, abstract-syntax-tree
awesome-ruby-ast
A list of awesome tools and libraries which deals with ASTs in Ruby
Stars: ✭ 24 (-77.57%)
Mutual labels:  ast, abstract-syntax-tree
toast
Plugin-driven CLI utility for code generation using Go source as IDL
Stars: ✭ 52 (-51.4%)
Mutual labels:  ast, code-generation
Vermin
Concurrently detect the minimum Python versions needed to run code
Stars: ✭ 218 (+103.74%)
Mutual labels:  ast, abstract-syntax-tree
vscode-blockman
VSCode extension to highlight nested code blocks
Stars: ✭ 233 (+117.76%)
Mutual labels:  ast, abstract-syntax-tree
Ts Morph
TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Stars: ✭ 2,384 (+2128.04%)
Mutual labels:  ast, code-generation
React Ast
render abstract syntax trees with react
Stars: ✭ 160 (+49.53%)
Mutual labels:  ast, abstract-syntax-tree
tsquery-playground
Playground for TSQuery
Stars: ✭ 30 (-71.96%)
Mutual labels:  ast, abstract-syntax-tree
Deps Report
Generate reports about dependencies and dependents of your JavaScript/TypeScript files through an AST. It supports import and require statements.
Stars: ✭ 76 (-28.97%)
Mutual labels:  ast, abstract-syntax-tree

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.png :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 <https://github.com/inducer/pymbolic>_.

Places on the web related to cgen:

cgen is licensed under the liberal MIT license <http://en.wikipedia.org/wiki/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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].