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

bavary
bavary simonwep TypeScript

🧬 Regular expressions on steroids. Parse anything and everything with a syntax - crafted to parse syntax. A super-set of regular-expressions.

11
tsterser
tsterser banyudu JavaScript

UglifyJs/Terser written with Typescript

11
Daimaku
Daimaku Veallym0n Python

顾名思义,一个代码的数据库....

11
bulletproof
bulletproof tvinke Groovy

Groovy AST transformations, such as @ValueObject and @NonNull, which makes constructing an instance more bullet-proof.

11
ts-transform-react-jsx-source
ts-transform-react-jsx-source dropbox TypeScript

TypeScript AST Transformer that adds source file and line number to JSX elements

11
qnn-object-ast-handle
qnn-object-ast-handle wangzongming TypeScript

javascript literal object manipulation plug-in in code file | 代码文件中的js字面量对象操作插件

11
tproto
tproto wy-z Go

Parse golang data structure into proto3.

11
meet
meet uanhi C++

The Meet Language Interpreter

11
es
es LuoZijun Rust

A ECMAScript Parser and Interpreter written in Rust

11
khtml
khtml MKD-hub Kotlin

A small HTML parser written in pure Kotlin

10
pboling
pboling pboling Python

Et moi, curated by my pet robot @autobolt

10
corral-lite
corral-lite NatthaphongY Python

Deterministic AST verification gate for AI-generated Python and Rust code.

10
arch-contract
arch-contract leofmarciano TypeScript

ArchContract: architecture contract validator for TypeScript. Enforces layers, dependency boundaries and AST expectations in CI/CD. Not a linter.

10
codeatlas-mcp-server
codeatlas-mcp-server giauphan TypeScript

Local-first MCP server for AI-powered codebase intelligence — AST analysis, dependency graphs, and semantic search. Your source code never leaves your...

10
codehound
codehound kratos0718 Python

An AST-based static analyzer that hunts real correctness and async-safety bugs in Python code. Each rule is distilled from a bug found and fixed in a...

10
cargo-dupes
cargo-dupes mpecan Rust

A cargo subcommand that detects duplicate and near-duplicate code blocks in Rust codebases using AST normalization

10
doora
doora backpack-lab Rust

Doora parses source files into syntax trees and runs S-expression queries to find functions, types, and call sites that grep misses. Supports Rust, Py...

10
Javascript-Cool
Javascript-Cool ktn1703 TypeScript

Next generation of javascript-obfuscation with 999% power.

10
graphlens
graphlens Neko1313 Python

Polyglot code-analysis framework — parses Python, TypeScript, Go, Rust & PHP into a shared graph IR (tree-sitter + type-aware resolvers: ty, tsc, gopl...

10
Guardrail
Guardrail Manavarya09 TypeScript

The safety layer for AI-generated code. Scan and fix security issues, performance problems, and AI-specific anti-patterns. 22 rules. AST auto-fix. Zer...

10
docstringify
docstringify stefmolin Python

Flag missing docstrings and, optionally, generate them from signatures and type annotations.

10
reductio
reductio jedin01 Java

A powerful Java library for parsing, simplifying, and analyzing mathematical expressions with automatic function type identification using Abstract Sy...

10
quorum
quorum berrzebb JavaScript

Cross-model audit gate with autonomous quality loop — AST hybrid scanning, fitness gate, blast radius, structured orchestration. 19 MCP tools, 743 tes...

10
cortex-ast
cortex-ast cortex-works Rust

A powerful Model Context Protocol (MCP) server and Omni-AST engine. It empowers AI agents to seamlessly parse complex codebases, execute secure cross-...

10
elm-syntax-format
elm-syntax-format lue-bird Elm

pretty print elm-syntax like elm-format

10
mimo
mimo bethropolis JavaScript

a simple programming language written in js.

10
hikma-engine
hikma-engine foyzulkarim TypeScript

A TypeScript-based code knowledge graph indexer that transforms Git repositories into searchable knowledge stores for AI agents. Creates interconnecte...

10
ioc-arise
ioc-arise stormsidali2001 TypeScript

Arise type-safe IoC containers from your code. Zero overhead, zero coupling.

10
s-expression-syntax
s-expression-syntax scymtym Common Lisp

Parse CL syntactic constructs in s-expression form (possibly represented as e.g. CSTs) and construct syntax trees

10
tiny-compiler
tiny-compiler Sunny-117 Java

实现超级 mini 的编译器 | codegen&compiler 生成代码 | 只需要 200 行代码 | 前端编译原理

10
typemorph
typemorph astahmer TypeScript

what if zod had a child with ts-morph

10
oko-lang
oko-lang tixonochekAscended JavaScript

👁️ An interpreted, non-esoteric programming language. "Language of vision".

10
cpp-ast-example
cpp-ast-example agentcooper C++

Examples of representing and traversing AST (Abstract Syntax Tree) in C++

10
lightningcss-ast-viewer
lightningcss-ast-viewer astahmer TypeScript

LightningCSS AST viewer.

10
snippetz
snippetz scalar TypeScript

Opinionated HTTP snippets 🌐

10
DiagnosticsTools
DiagnosticsTools wieslawsoltes C#

Cross-platform diagnostics, inspection, and tooling for Avalonia UI applications.

10
ranlexer
ranlexer chaxus TypeScript

Tiny JavaScript parser and generator.

10
dbge
dbge aranega Python

An extension to IPdb for Python >= 3.11 that supports bytecode stepping, sub-expression stepping/breakpoints, object-centric breakpoints and experimen...

10
scxx
scxx Civitasv C++

Scheme interpreter in C++, with the power of modern C++ and RAII.

10
Sarcasm
Sarcasm davidnemeti C#

Sarcasm is an SDK for creating typesafe, domain-bound grammars. It also has a grammar driven general unparser.

10
opine
opine ArulselvanMadhavan OCaml

Opine is an OCaml library that unparses the python AST produced by pyre-ast library back to python source code.

10
odatafy-parser
odatafy-parser gang-of-fork TypeScript

odata parser for odatafy framework

10
jscodeshift-typescript
jscodeshift-typescript jesperorb TypeScript

A repo demonstrating jscodeshift in combination with TypeScript and JSX

10
BasicCCompiler
BasicCCompiler aalekhm C

A basic C language compiler from scratch.

10
scala-macro-tools
scala-macro-tools bitlap Scala

[Experimental] Scala macro tools, includes the supported IntelliJ plugin.

10
hldiff
hldiff JetBrains-Research Kotlin

Language-independent high-level differencing tool

10
bison-example
bison-example 5nord C

Simple example how to get a flex/bison project up and running

10
solhint
solhint tokenhouse JavaScript

PROJECT MOVED TO https://github.com/protofire/solhint

10
veil
veil devigned Go

Veil is a code generator which exposes Golang packages via a generated C ABI that is consumed by host languages through FFI. Currently, Veil supports...

10
javascript-es9-parser
javascript-es9-parser hrvolapeter Rust

Javascript evaluator according to ECMAScript

10