Most popular ast repositories and open source projects

A grammar describes the syntax of a programming language, and might be defined in Backus-Naur form (BNF). A lexer performs lexical analysis, turning text into tokens. A parser takes tokens and builds a data structure like an abstract syntax tree (AST). The parser is concerned with context: does the sequence of tokens fit the grammar? A compiler is a combined lexer and parser, built for a specific grammar.

prettier

Prettier is an opinionated code formatter.

3925   45919   45919  

babel

🐠 Babel is a compiler for writing next generation JavaScript.

5675   42353   42353  

postcss

Transforming styles with JS plugins

1578   27605   27605  

PHP-Parser

A PHP parser written in PHP

937   16189   16189  

rector

Instant Upgrades and Automated Refactoring of any PHP 5.3+ code

633   7307   7307  

js-code-to-svg-flowchart

js2flowchart - a visualization library to convert any JavaScript code...

498   6874   6874  

esprima

ECMAScript parsing infrastructure for multipurpose analysis

798   6808   6808  

remark

remark is a popular tool that transforms markdown with plugins. These...

375   6470   6470  

astexplorer

A web tool to explore the ASTs generated by various parsers.

671   5517   5517  

go-ast-book

:books: 《Go语言定制指南》(原名:Go语法树入门/开源免费图书/Go语言进阶/...

641   5012   5012  

javaparser

Java 1-17 Parser and Abstract Syntax Tree for Java with advanced analy...

1048   4772   4772  

estree

The ESTree Spec

373   4627   4627  

gogocode

GoGoCode is a transformer for JavaScript/Typescript/HTML based on AST...

361   4494   4494  

JSqlParser

JSqlParser parses an SQL statement and translate it into a hierarchy o...

1234   4460   4460  

ts-morph

TypeScript Compiler API wrapper for static analysis and programmatic c...

173   3962   3962  

unified

☔️ interface for parsing, inspecting, transforming, and serializing co...

113   3895   3895  

compodoc

:notebook_with_decorative_cover: The missing documentation tool for yo...

388   3859   3859  

expr

Expression language and expression evaluation for Go

269   3597   3597  

participle

A parser library for Go

163   3007   3007  

esdoc

ESDoc - Good Documentation for JavaScript

216   2739   2739  

escodegen

ECMAScript code generator

348   2517   2517  

ast-grep

⚡A CLI tool for code structrual search, lint and rewriting. Written in...

46   2467   2467  

react-monocle

A developer tool to visualize a React application's component hierarch...

93   2460   2460  

cppinsights

C++ Insights - See your source code with the eyes of a compiler

129   2362   2362  

retext

natural language processor powered by plugins part of the @unifiedjs c...

106   2261   2261  

Down

Blazing fast Markdown / CommonMark rendering in Swift, built upon cmar...

309   2089   2089  

piranha

A tool for refactoring code related to feature flag APIs

174   2074   2074  

gitbase

SQL interface to git repositories, written in Go. https://docs.sourced...

123   2024   2024  

infection

PHP Mutation Testing library

155   1886   1886  

csstree

A tool set for CSS including fast detailed parser, walker, generator a...

99   1715   1715  

babylon

PSA: moved into babel/babel as @babel/parser -->

273   1712   1712  

rope

a python refactoring library

163   1642   1642  

birdseye

Graphical Python debugger which lets you easily view the values of all...

78   1576   1576  

spoon

Spoon is a metaprogramming library to analyze and transform Java sourc...

324   1527   1527  

cppast

Library to parse and work with the C++ AST

164   1518   1518  

micromark

small, safe, and great commonmark (optionally gfm) compliant markdown...

53   1482   1482  

diffsitter

A tree-sitter based AST difftool to get meaningful semantic diffs

22   1368   1368  

rehype

HTML processor powered by plugins part of the @unifiedjs collective

86   1344   1344  

rewrite

Automated mass refactoring of source code.

165   1153   1153  

astring

🌳 Tiny and fast JavaScript code generator from an ESTree-compliant AST...

51   1053   1053  

ModiScript

Acche din aa gaye

124   1035   1035  

typehole

TypeScript development tool for Visual Studio Code that helps you auto...

13   1035   1035  

meriyah

A 100% compliant, self-hosted javascript parser - https://meriyah.git...

43   940   940  

starry-night

Syntax highlighting, like GitHub

19   936   936  

php-parser

PHP parser written in Go

65   928   928  

proposal-binary-ast

Binary AST proposal for ECMAScript

24   923   923  

solhint

Solhint is an open-source project to provide a linting utility for Sol...

147   921   921  

estraverse

ECMAScript JS AST traversal functions

135   902   902  

mdast

Markdown Abstract Syntax Tree format

42   860   860  

tolerant-php-parser

An early-stage PHP parser designed for IDE usage scenarios.

80   840   840