All Projects → rajasegar → ast-builder

rajasegar / ast-builder

Licence: other
Build your ASTs directly from code

Programming Languages

javascript
184084 projects - #8 most used programming language
Handlebars
879 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to ast-builder

Js Sql Parser
SQL(select) parser written with jison. parse SQL into abstract syntax tree(AST) and stringify back to SQL. sql grammar follows https://dev.mysql.com/doc/refman/5.7/en/select.html
Stars: ✭ 141 (+683.33%)
Mutual labels:  ast, abstract-syntax-tree
awesome-ruby-ast
A list of awesome tools and libraries which deals with ASTs in Ruby
Stars: ✭ 24 (+33.33%)
Mutual labels:  ast, abstract-syntax-tree
React Ast
render abstract syntax trees with react
Stars: ✭ 160 (+788.89%)
Mutual labels:  ast, abstract-syntax-tree
Cgen
C/C++ source generation from an AST
Stars: ✭ 107 (+494.44%)
Mutual labels:  ast, abstract-syntax-tree
CastXMLSuperbuild
Build CastXML and its dependencies (LLVM/Clang)
Stars: ✭ 32 (+77.78%)
Mutual labels:  ast, abstract-syntax-tree
Rewrite
Semantic code search and transformation
Stars: ✭ 134 (+644.44%)
Mutual labels:  ast, abstract-syntax-tree
Vermin
Concurrently detect the minimum Python versions needed to run code
Stars: ✭ 218 (+1111.11%)
Mutual labels:  ast, abstract-syntax-tree
Javaparser
Java 1-15 Parser and Abstract Syntax Tree for Java, including preview features to Java 13
Stars: ✭ 3,972 (+21966.67%)
Mutual labels:  ast, abstract-syntax-tree
abstract-syntax-tree
A library for working with abstract syntax trees.
Stars: ✭ 77 (+327.78%)
Mutual labels:  ast, abstract-syntax-tree
codeparser
Parse Wolfram Language source code as abstract syntax trees (ASTs) or concrete syntax trees (CSTs)
Stars: ✭ 84 (+366.67%)
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 (+322.22%)
Mutual labels:  ast, abstract-syntax-tree
coAST
Universal and language-independent abstract syntax tree
Stars: ✭ 30 (+66.67%)
Mutual labels:  ast, abstract-syntax-tree
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 (+5888.89%)
Mutual labels:  ast, abstract-syntax-tree
verilogAST-cpp
C++17 implementation of an AST for Verilog code generation
Stars: ✭ 14 (-22.22%)
Mutual labels:  ast, abstract-syntax-tree
I18nize React
Internationalize react apps within a lunch break
Stars: ✭ 389 (+2061.11%)
Mutual labels:  ast, abstract-syntax-tree
Bellybutton
Custom Python linting through AST expressions
Stars: ✭ 196 (+988.89%)
Mutual labels:  ast, abstract-syntax-tree
open-fortran-parser-xml
XML output generator for Open Fortran Parser, and Python wrapper for it.
Stars: ✭ 21 (+16.67%)
Mutual labels:  ast, abstract-syntax-tree
vscode-blockman
VSCode extension to highlight nested code blocks
Stars: ✭ 233 (+1194.44%)
Mutual labels:  ast, abstract-syntax-tree
tsquery-playground
Playground for TSQuery
Stars: ✭ 30 (+66.67%)
Mutual labels:  ast, abstract-syntax-tree
lpegrex
Parse programming languages syntax into an AST using PEGs with ease (LPeg Extension).
Stars: ✭ 32 (+77.78%)
Mutual labels:  ast

ast-builder

Build your Abstract Syntax Trees (AST) directly by writing code. Simply type in your code and get the right jscodeshift api to build your AST.

Read the introductory blog post to know more about the tool.

This application is built in Ember.js

How to use it?

  • TOP LEFT PANE => Source code
  • TOP RIGHT PANE => AST
  • BOTTOM LEFT PANE => Builder API
  • BOTTOM RIGHT PANE => Verified Output (Source code)

screenshot

Motivation

The reason this project is created is because, I am simply frustrated for looking up reference for writing codemods and the jscodeshift api is not very well documented.

This is an interactive version of jscodeshift-docs

Prerequisites

You will need the following things properly installed on your computer.

Installation

  • git clone <repository-url> this repository
  • cd ast-builder
  • npm install

Running / Development

Code Generators

Make use of the many generators for code, try ember help generate for more details

Running Tests

  • ember test
  • ember test --server

Linting

  • yarn lint
  • yarn lint:fix

Building

  • ember build (development)
  • ember build --environment production (production)

Deploying

Specify what it takes to deploy your app.

Further Reading / Useful Links

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].