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)

rable
rable mpecan Rust

A complete GNU Bash 5.3-compatible parser written in Rust — 100% compatible reimplementation of Parable with Python bindings via PyO3, ~10x faster

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
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
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
php-dump-plugin
php-dump-plugin j-plugins Kotlin

Intellij IDEA Plugin Exposes PHP internal stuctures

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

pretty print elm-syntax like elm-format

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
LazyCoder
LazyCoder mifopen C#

Writes Typescript for you

10
language-js
language-js diasbruno Haskell

Parser for es6 and es7.

10
parseStruct
parseStruct pingdai Go

Parse struct by tag from file. Welcome to see my blogs:https://dpjeep.com

10
polix-rpc
polix-rpc polixjs JavaScript

rpc plugin for polix

10
kotlin-elements
kotlin-elements tschuchortdev Kotlin

Extension of the Java annotation processing API to Kotlin types

10
vuex-map-purge
vuex-map-purge potato4d TypeScript

Convert Vuex map utils to computed / methods.

10
less2sass
less2sass vecerek Ruby

Converts Less projects to Sass based on their AST instead of the search and replace approach.

10
shortcode-tokenizer
shortcode-tokenizer mblarsen JavaScript

Tokenizes a string containing shortcodes and optionally outputs an AST

10
handlebars-lint
handlebars-lint jonschlinkert JavaScript

Pass a context and a string with handlebars templates and lint for missing variables, helpers, block helpers or partials.

10
tslox
tslox jeroenptrs TypeScript

jlox implementation in Typescript

10
Code2Image
Code2Image ArcelikAcikKaynak Python

Intelligent Code Analysis by Computer Vision Techniques and Application to Vulnerability Prediction

10
TZeroAlgorithm
TZeroAlgorithm toprakahmetaydogmus Python

AST Codebase Context Engine & 21-Tool MCP Server for AI Coding Agents — Up to 95% Token Reduction & Zero-Leak Security Architecture

9
codegraph
codegraph lzehrung TypeScript

CLI, MCP and TS library that turns source code into a map of files, symbols, references, and dependencies using tree-sitter.

9
TestPilot-AI
TestPilot-AI Shikhaar Python

AI-powered regression testing platform using AST analysis, hybrid RAG, LangGraph agents, sandboxed test execution, and automated failure diagnosis.

9
context_extractor_ai
context_extractor_ai IrMaho Dart

🧠 Next-gen AI context and semantic extractor for large codebases and LLMs to maximize prompt efficiency and AST understanding.

9
AtDoc
AtDoc WEDC-Studio-Official TypeScript

AI-native semantic document notation with deterministic grammar and multi-target compilation

9
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...

9
ASTra
ASTra shravan606756 Java

Forged a compiler-native intelligence engine that navigates code through AST semantics, intent inference, and architecture-level reasoning.

9
toml-patch
toml-patch DecimalTurn TypeScript

Patch, parse and stringify TOML while preserving comments, whitespace and formatting.

9