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)

esvalid
esvalid estools JavaScript

confirm that a SpiderMonkey format AST represents an ECMAScript program

27
rustq
rustq elixir-crab Elixir

Typed Rust and Rustler code generation from Elixir — quasiquoting, ASTs, and zero-handwritten-Rust NIF boundaries

26
infimium-agent
infimium-agent infimium-ai TypeScript

The Private Context Layer & Super Brain for Your Codebase. Give AI agents persistent memory, deep dependency graphs, and instant code context

26
lua-parser
lua-parser dingyi222666 Kotlin

A Lua 5.3 / 5.4 Lexer & Parser written in Pure Kotlin.

26
codeverter
codeverter southworks TypeScript

Convert ts source files into multiple languages

26
toml-eslint-parser
toml-eslint-parser ota-meshi TypeScript

A TOML parser that produces output compatible with ESLint

26
textlint-plugin-html
textlint-plugin-html textlint HTML

HTML support for textlint

26
gram-js
gram-js gram-data JavaScript

Gram in javascript.

26
awesome-ruby-ast
awesome-ruby-ast rajasegar

A list of awesome tools and libraries which deals with ASTs in Ruby

26
gaq
gaq tamayika Go

GAQ(Go Ast Query) is the library to query ast.Node children like JavaScript querySelector or querySelectorAll for Go.

26
fastats
fastats fastats Python

A pure Python library for benchmarked, scalable numerics using numba.

26
Python3Generator
Python3Generator juliendelplanque Smalltalk

A toolkit to generate Python 3 source code from Pharo.

26
impast
impast orisano Go

A library for package AST importing

26
babel-plugin-detective
babel-plugin-detective avajs JavaScript

Babel plugin that scans the AST for require calls and import statements

26
filter-ast
filter-ast Zagorodnyi TypeScript

Parses a declarative filter object with $op(value) strings into a typed, database-agnostic filter AST. Zero dependencies, ~50 ns per call.

25
php-parser-speed-comparison-2026
php-parser-speed-comparison-2026 TomasVotruba Go

Quick speed comparison of tools that parse PHP code

25
hypergrep
hypergrep marjoballabani Rust

A better grep for AI agents. Structural search, call graphs, impact analysis, semantic compression. 87% fewer tokens. 16 languages. Built in Rust.

25
yoyo
yoyo avirajkhare00 Rust

yoyo is a local MCP server for repository reading and change work. It exists to make coding agents less hallucinated, more grounded, and more truthful...

25
ast-explorer
ast-explorer scalameta Scala

AST explorer for Scalameta trees

25
doctor-json
doctor-json privatenumber TypeScript

Surgically edit JSON & JSONC strings while preserving whitespace, comments, and formatting

25
swc-ast-viewer
swc-ast-viewer magic-akari TypeScript

SWC AST Viewer

25
magic-string-ast
magic-string-ast sxzz TypeScript

magic-string with Babel AST shortcut.

25
cst-tokens
cst-tokens js-cst-tokens JavaScript

Tool-building tools that can help parse, validate, or transform token streams

25
rubocop-sorted_methods_by_call
rubocop-sorted_methods_by_call unurgunite Ruby

RuboCop extension for method sorting according to call order.

25
Lua-To-Python
Lua-To-Python marteinn Python

Lua to python compiler

25
astexplorer-go
astexplorer-go DanSnow JavaScript
25
rehype-dom
rehype-dom rehypejs JavaScript

HTML processor to parse and compile with browser APIs, powered by plugins

25
scope-analyzer
scope-analyzer goto-bus-stop JavaScript

simple scope analysis for javascript ASTs

25
macro-visit
macro-visit sangria-graphql Scala

A macro-based generic visitor generator

25
vaceline
vaceline shqld TypeScript

Toolchains for VCL that parses, lints, formats, and transpiles

25
babel-codemod-example
babel-codemod-example kentcdodds JavaScript

An example of how to use babel as a codemod

25
react-proptypes-generate
react-proptypes-generate dpzxsm JavaScript

A Vscode extension for react PropTypes, Support command line

25
import-deps
import-deps schettino72 Python

find python module imports

25
QinScript
QinScript Yaser-wyx TypeScript

A scripting language used to learn the principles of compilation

25
NanoMD
NanoMD pardnchiu TypeScript

(package) A TypeScript Markdown parser with a JSON AST, on-demand Mermaid/KaTeX/Chart.js rendering, and sanitized HTML output

24
recma
recma mdx-js JavaScript

JS processor powered by plugins part of the @unifiedjs collective

24
nestjs-dependency-analyzer
nestjs-dependency-analyzer ChuloWay TypeScript

A command-line tool for analyzing and visualizing dependencies in NestJS applications.

24
MiniC
MiniC LC044 C++

MiniC语言编译器前端,生成抽象语法树,产生线性IR,生成控制流图

24
thrift-pyi
thrift-pyi unmade Python

Simple `.pyi` stubs generator from thrift interfaces

24
Mayat
Mayat AnubisLMS C

Experimental AST-Based Source Code Similarity Detection Tool

24
nfp
nfp xuri Go

Go Language Microsoft Excel™ Number Format Parser

24
cppcombinator
cppcombinator MoserMichael C++

parser combinator and AST generator in c++17

24
talk-maringa-ast
talk-maringa-ast sibelius JavaScript

Slides of my talk about Practical AST at Front in Maring

24
clangml
clangml Antique-team C++

OCaml bindings for clang

24
ast-builder
ast-builder rajasegar JavaScript

Build your ASTs directly from code

24
pi-ast-grep
pi-ast-grep code-yeongyu TypeScript

AST-aware code search and rewrite for the pi coding agent. Faithful port of the ast-grep tools from oh-my-openagent.

23
nomik
nomik willFreed1 TypeScript

Nomik is an AI-native code intelligence graph. It transforms your codebase into Neo4j and connects directly to AI agents via MCP.

23
ariadne
ariadne CRJFisher TypeScript

🧵 Follow the thread through your codebase - find definitions, track references, and build call graphs with tree-sitter

23
Sodium-Programming-Language
Sodium-Programming-Language Instruction-Oriented-Programming Python

Sodium is a general purpose programming language which is instruction-oriented (a new programming concept that we are developing and devising) [Still...

23
dotlang
dotlang abock C#

.NET Standard library for parsing and generating Graphviz DOT files.

23