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 (1707)

ex_ast
ex_ast elixir-vibe Elixir

Search, replace, and diff Elixir code by AST pattern

54
akamai-vm-reverse
akamai-vm-reverse drakoarmy JavaScript

Decompiled and cleaned Akamai v3 VM powering the latest sensor_data challenge script.

54
yaraast
yaraast seifreed Python

A powerful Python library and CLI tool for parsing, analyzing, and manipulating YARA rules through Abstract Syntax Tree (AST) representation

54
gct
gct QasimWani Python

Graphical Code Tracer (GCT): Visualize code at lightning speed

54
toast
toast Fanatics Go

Plugin-driven CLI utility for code generation using Go source as IDL

54
konan
konan egoist JavaScript

find all require/import calls by walking the AST

53
coAST
coAST coala CSS

Universal and language-independent abstract syntax tree

53
easytemplate
easytemplate speakeasy-api Go

easytemplate is Go's text/template with 🦸 JS super powers 🦸

52
retidy
retidy Xmader TypeScript

Extract, unminify, and beautify ("retidy") each file from a webpack/parcel bundle (JavaScript reverse engineering)

52
graphql-ast-types
graphql-ast-types imranolas JavaScript

Functional helpers for working with a GraphQL AST

52
sast
sast shawnbot JavaScript

Parse CSS, Sass, SCSS, and Less into a unist syntax tree

52
codebase-intelligence
codebase-intelligence Thibault-Knobloch Python

🧩 Tibo – CLI tool for codebase indexing, embedding and natural language querying.

51
rich-text-vista
rich-text-vista larksuite TypeScript

RichTextVista is a high-performance, extensible rich text component designed for HarmonyOS applications, supporting diverse rich text styling capabili...

51
dockerfile-ast
dockerfile-ast rcjsuen TypeScript

An npm module for parsing Dockerfiles powered by TypeScript.

51
php-ast-reverter
php-ast-reverter tpunt PHP

Reverts the php-ast AST back into (somewhat) PSR-compliant code

51
JavaParser-AST-Inspector
JavaParser-AST-Inspector MysterAitch Java

Using JavaParser (https://github.com/JavaParser/JavaParser), browse and navigate the Abstract Syntax Tree (AST) based on the code in your editor.

50
ddless-engine
ddless-engine behindSolution PHP

PHP debug engine that works without extensions AST instrumentation + file-based IPC. Powers DDLess.

49
ast-comments
ast-comments t3rn0 Python

Extension to the built-in ast module. Finds comments in source code and adds them to the parsed tree.

49
lowcode
lowcode iteria-app JavaScript

React Lowcode - prototype, develop and maintain internal apps easier

49
gomambojambo
gomambojambo q6r Go

Golang AST Obfuscation

48
ast-explorer-helper
ast-explorer-helper JSREI TypeScript

ast explorer助手,优化分析程序结构时的体验,提升逆向还原代码编写效率

47
gogrep
gogrep quasilyte Go

Syntax-aware Go code search, based on the mvdan/gogrep

47
Hive_SQL_AST
Hive_SQL_AST lulumengyi Java

利用Druid SQL Parser解析HiveSQL日志,自动构建字段级别的血缘关系及主外键的自动抽取

47
sipcode
sipcode Anuj7411 TypeScript

Keep Claude Code context clean. Open-source toolkit: drift detection, re-read dedup, integrity scoring, AST-aware reads, 15 MCP tools. 62.6% measured...

46
effect-oxlint
effect-oxlint mpsuesser TypeScript

Write oxlint custom lint rules with Effect v4

46
bluelox
bluelox nanmu42 Go

A tree-walking interpreter implemented in Golang for Lox, with a browser playground supported by WASM | 一个基于语法树的Lox解释器,附带WASM版本的playg...

46
pyre-ast
pyre-ast grievejia OCaml

pyre-ast is an OCaml library to parse Python files. The library features its full-fidelity to the official Python spec, as well as its adoption of ta...

46
lombok-ex
lombok-ex houbb Java

Java compile time annotation, lombok extension framework.(java 编译时注解框架,对 lombok 进行扩展)

46
brenda
brenda dave Go

Brenda is a boolean expression solver for Go AST

46
php-ast-viewer
php-ast-viewer RightCapitalHQ TypeScript

The PHP AST Viewer is a tool for viewing the Abstract Syntax Tree of PHP code. By visualizing the structure, it helps developers gain a deeper underst...

45
error-prone-support
error-prone-support PicnicSupermarket Java

Error Prone extensions: extra bug checkers and a large battery of Refaster rules.

45
Lyspen
Lyspen uprun JavaScript

Lyspen (previously Lisperanto) is an AST structured editor.

45
phpast.com
phpast.com ryangjchandler PHP

A web tool to explore the ASTs generated by PHP-Parser.

45
prettierrc
prettierrc obartra JavaScript

🗄️ 💅 config file for prettier

45
babel-plugin-ast
babel-plugin-ast barretlee JavaScript

使用 babel 进行 AST 分析和处理

45
ImpactGuard
ImpactGuard daedalus Python

ImpactGuard — Lightweight multi-language API impact analyzer

44
showsignature
showsignature FredySandoval TypeScript

A CLI that extracts the useful structure from source files: signatures, imports, types, variables, comments, and Markdown sections.

44
telescope-ast-grep.nvim
telescope-ast-grep.nvim ray-x Lua

AST grep extension for telescope.nvim

44
go-parser
go-parser tuqqu PHP

Golang parser written in PHP

44
php2python
php2python nicolasrod Python

Convert PHP code to Python under CGI (beta)

44
astnorm
astnorm quasilyte Go

AST normalization experiment

44
ts-transform-react-constant-elements
ts-transform-react-constant-elements dropbox TypeScript

A TypeScript AST Transformer that can speed up reconciliation and reduce garbage collection pressure by hoisting React elements to the highest possibl...

44
agent-slop-lint
agent-slop-lint JordanGunn Python

Language-agnostic code quality linter for the agentic era. Catches structural, lexical, and information based rot before it becomes architectural.

43
dioscuri
dioscuri wooorm JavaScript

A gemtext (`text/gemini`) parser with support for streaming, ASTs, and CSTs

43
tsquery-playground
tsquery-playground urish TypeScript

Playground for TSQuery

43
TypeScriptAST
TypeScriptAST ToCSharp C#

.NET port of Microsoft's TypeScript parser for simple AST manipulation

43
graphql-factory
graphql-factory graphql-factory JavaScript

A toolkit for building GraphQL

43
peginator
peginator badicsalex Rust

PEG parser generator for creating ASTs in Rust

42
tiny-compiler
tiny-compiler dborchard Java

Tiny Compiler in plain Java. Covers examples for AST, JDT, ANTLR & JavaParser

42
markdown-ast
markdown-ast aleclarson JavaScript

Tiny markdown parser

42