Topic

ast

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.

Repositories (1695)

gengen
gengen joeshaw Go

A Go source transformation tool for generics

259
astpath
astpath hchasestevens Python

A command-line search utility for Python ASTs using XPath syntax.

258
js-sql-parser
js-sql-parser JavaScriptor JavaScript

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/d...

258
json-to-ast
json-to-ast vtrushin JavaScript

JSON AST parser

251
gulp-strip-debug
gulp-strip-debug sindresorhus JavaScript

Strip console, alert, and debugger statements from JavaScript code

249
AST-query
AST-query SBoudrias JavaScript

Tentative to a simple JavaScript AST modification library

248
lang-c
lang-c vickenty Rust

Lightweight C parser for Rust

248
ast-grep-vscode
ast-grep-vscode ast-grep TypeScript

ast-grep VSCode is a structural search and replace extension for many languages.

241
phpgrep
phpgrep quasilyte Go

Syntax-aware grep for PHP code.

241
phplrt
phplrt phplrt PHP

PHP Language Recognition Tool

241
rector-symfony
rector-symfony rectorphp PHP

Rector upgrade rules for Symfony

238
node-precinct
node-precinct dependents JavaScript

Unleash the detectives

234
nlcst
nlcst syntax-tree

Natural Language Concrete Syntax Tree format

233
gograph
gograph ozgurcd Go

Local-only Go static analysis engine with a built-in MCP server. Gives AI coding agents deterministic structural awareness: call graphs, impact analys...

231
ast-i18n
ast-i18n sibelius TypeScript

Easily migrate your existing React codebase to use i18n

231
bash-parser
bash-parser vorpaljs JavaScript

Parses bash into an AST

230
cub
cub louisdh Swift

The Cub Programming Language

229
AST-query
AST-query SBoudrias JavaScript

Tentative to a simple JavaScript AST modification library

227
asteval
asteval lmfit Python

minimalistic evaluator of python expression using ast module

225
snapdragon
snapdragon here-be JavaScript

snapdragon is an extremely pluggable, powerful and easy-to-use parser-renderer factory.

225
HRDevHelper
HRDevHelper patois Python

Context-sensitive HexRays decompiler plugin that visualizes the ctree of decompiled functions.

222
automapper
automapper jolicode PHP

:rocket: Very FAST :rocket: PHP AutoMapper with on the fly code generation

220
parser
parser graphql-dotnet C#

A lexer and parser for GraphQL in .NET

219
protoletariat
protoletariat cpcloud Python

Protocol Buffers for the rest of us

214
gox
gox 8byt Go

JSX for Go

214
astq
astq rse JavaScript

Abstract Syntax Tree (AST) Query Engine

212
proleap-cobol-parser
proleap-cobol-parser uwol COBOL

ProLeap ANTLR4-based parser for COBOL

210
refactor
refactor isidentical Python

Simple python source refactoring toolkit based on AST

209
csharp-eval-unity3d
csharp-eval-unity3d deniszykov C#

C# Expression Parser for Unity3D

208
openapi-typescript-code-generator
openapi-typescript-code-generator Himenon TypeScript

TypeScript code generator via OpenAPI scheme.

207
query-translator
query-translator netgen PHP

Query Translator is a search query translator with AST representation

206
ts-graphviz
ts-graphviz ts-graphviz TypeScript

Simple Graphviz library for TypeScript.

205
transfunctions
transfunctions mutating Python

Say NO to Python fragmentation on sync and async

204
BBob
BBob JiLiZART TypeScript

⚡️Blazing fast js bbcode parser, that transforms and parses bbcode to AST and transform it to HTML, React, Vue with plugin support in pure javascript...

201
smart-coding-mcp
smart-coding-mcp omar-haris JavaScript

An extensible Model Context Protocol (MCP-Local-MRL-RAG-AST) server that provides intelligent semantic code search for AI assistants. Built with local...

200
astpretty
astpretty asottile Python

Pretty print the output of python stdlib `ast.parse`.

199
Trace
Trace L018 JavaScript

A Chrome extension for web analytics

198
llvm-guide-zh
llvm-guide-zh zy445566 C++

User Guides For those new to the LLVM system.(LLVM系统的新用户指南,中文翻译版)

198
AutoDocs
AutoDocs TrySita Python

We handle what engineers and IDEs won't: generating and maintaining technical documentation for your codebase, while also providing search with depend...

196
py2many
py2many adsharma Python

Python to CLike languages transpiler

192
pycode_similar
pycode_similar fyrestone Python

A simple plagiarism detection tool for python code

191
js-ziju
js-ziju wizardpisces TypeScript

Compile javascript to LLVM IR, x86 assembly and self interpreting

189
libpypa
libpypa vinzenz C++

libpypa is a Python parser implemented in pure C++

189
compiler
compiler drifter1 C

This is an implementation of a compiler for a simple C-like language that uses the C tools Flex and Bison.

188
bonsai-js
bonsai-js danfry1 TypeScript

A safe, zero-dependency expression language for rules, filters, and templates

186
go-fAST
go-fAST T14Raptor Go

A JavaScript AST parser, traverser, and generator written in Go

186
unimport
unimport hakancelikdev Python

:rocket: A linter, formatter for finding and removing unused import statements.

185
html5parser
html5parser acrazing TypeScript

A super tiny and fast html5 AST parser.

182
cgen
cgen inducer Python

C/C++ source generation from an AST

181
bgts-context-engine
bgts-context-engine bgts-ai-org Python

Deterministic code-graph context engine for AI coding agents - PostgreSQL + Apache AGE + pgvector, MCP & REST, no LLM in the loop.

180