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)

php-code-ast
php-code-ast open-code-modeling PHP

PHP code generation based on PHP Abstract Syntax Tree (AST) with an easy to use high level OO API. Reverse engineering of your PHP code is also suppor...

7
gwion-ast
gwion-ast Gwion C

Ast, lexer, parser, preprocessor for Gwion language

7
putout-editor
putout-editor coderaiser TypeScript

http://putout.cloudcmd.io/

7
tscer
tscer sonacy TypeScript

simple tool to quick transform jsx react project to tsx

7
javascript-clone-detection
javascript-clone-detection felipelealdefaria JavaScript

Academic study project on JavaScript code duplication using AST parsing and string similarity.

7
javac-rs
javac-rs JarvisCraft Rust

Java compiler written on Rust aimed at better modularity and ease of extension

7
JavaParser-for-Scala
JavaParser-for-Scala Portfoligno Scala

Facilitate analysis of JavaParser AST by Scala pattern matching

7
prettier-ast-explorer
prettier-ast-explorer sosukesuzuki TypeScript

AST explorer for contribution to Prettier

7
loppers
loppers narrowtux Elixir

Validate quoted elixir code against a function whitelist

7
KotlinFuzzer
KotlinFuzzer ItsLastDay Kotlin

Fuzzer for Kotlin compiler. Found > 65 unique bugs in kotlinc v1.1.4-3.

7
sasquatch
sasquatch asarudick TypeScript

A configurable code modifier for typescript and friends. Can transform entire codebases to enforce better coding practices, eliminate tech debt in one...

7
graphql-language
graphql-language hansott PHP

🚧 A GraphQL parser written in PHP

7
gocoder
gocoder gogap Go

easily to analyze your go code with go/ast

7
co-to-async
co-to-async albinekb JavaScript

🦄 Take the step from co.wrap to async/await automagically

7
astutil
astutil mh-cbon Go

Package astutil provides useful methods to work with ast when you intend to make a generator.

7
parserjs
parserjs usablica JavaScript

Javascript AST parser

7
amdextract
amdextract mahdi-shojaee JavaScript

Uses AST to extract AMD modules, their parts and an optimized output without unused dependencies while keeping the original format.

7
restrict-javascript
restrict-javascript azu TypeScript

Define restrict JavaScript syntax and validate it.

7
controlflow
controlflow mbergin Go

A package to remove `goto` statements from a Go syntax tree by rewriting them as conditionals and loops.

7
jazzle-parser
jazzle-parser JazzleWare JavaScript

relatively small and ridiculously fast parser for all versions of ECMAScript/Javascript, written in the greatest common divisor of all versions of ECM...

7
stride
stride phogolabs Go

A code generator for OpenAPI v3.x

7
xmlparsing
xmlparsing zhengsk TypeScript

An xml parser.

7
prototype-minify
prototype-minify naver JavaScript

Minify prototype for typescript or unminfied prototype.

7
earleyparser
earleyparser antedeguemon Python

a simple earley parser

7
node-detective-postcss
node-detective-postcss dependents TypeScript

Find the dependencies of a CSS file (PostCSS dialect)

7
b28-cli
b28-cli moshang-xc JavaScript

对代码中的多语言词条进行提取,翻译替换等,提取词条输出excel文件,通过翻译后的excel文件进行词条的导入和替换。同时支持ExcelToJson, JsonToExcel

7
CPlatypus
CPlatypus PlatypusLanguage C#

Official Platypus Interpreter written in C# and .Net Core

7
Hinton
Hinton hinton-lang HTML

A simple interpreter, written in Rust, for a programming language called Hinton.

7
repolayer
repolayer zhousiyao03-cyber Rust

Cross-repo agent index layer. Stop dumping 400k tokens — index your repos once, query like a database.

6
py-ast
py-ast kriss-u TypeScript

A TypeScript library that parses Python source code into a CPython compatible AST, with full support for unparsing back to Python, tree traversal, and...

6
odlang
odlang Sameetpatro Go

A programming language with Odia-inspired keywords includes interpreter, REPL, and CLI built in Go.

6
distill
distill arthjean JavaScript

Your agent wastes context. Distill fixes it.

6
Suma-lang
Suma-lang SumaRoder Python

Suma-lang is a programming language compiler implemented in Python. This repository contains the core compiler infrastructure for the Suma language.

6
weld
weld configflux Python

Weld connected structure toolkit for agent-first repository discovery

6
deep-init
deep-init deepfusionlabs Python

Claude Code plugin that writes grounded, verified context for your coding agent — every claim checked against your code. Lean CLAUDE.md + deep docs, 1...

6
unguard
unguard TwoAbove TypeScript

Unguard your code

6
copy-paste-detector
copy-paste-detector shipmonk-rnd PHP

🪞 Structural code duplication detector for PHP. Detect copy pasted code in your PHP codebase.

6
Ripple-Mcp
Ripple-Mcp 0xYubo Python

字段级语义变更影响分析 MCP Server | Field-level semantic change impact analysis MCP server for Claude Code — pip install ripple-impact-mcp

6
onnx-rs
onnx-rs universalmind303 Rust

zero dependency onnx parser

6
editor-extensions
editor-extensions konveyor TypeScript

VSCode extension for Konveyor.io

6
i18n-hunt
i18n-hunt JeevesInc Rust

CLI to find unused i18n translation keys in JavaScript projects.

6
universal_modloader
universal_modloader drago-suzuki58 Python

A Mixin/Harmony-style modding framework for Python using AST injection. Modify function logic and local variables at runtime via simple decorators, wi...

6
c0compiler
c0compiler RRdebug C++

IMU的编译原理大作业,c0编译器(前端+后端)

6
reductio
reductio jedin01 Java

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

6
luau-parser
luau-parser ssynical Luau

Fast lexer and parser for Luau with full AST support

6
reader
reader php-type-language PHP

[READ ONLY] 📰 Library for reading TypeLang AST nodes from types exposed by PHP Reflection objects

6
diesel
diesel pedro-gutierrez Elixir

DSL craft and declarative programming in Elixir

6
golangpeekr
golangpeekr mwiater Go

Peer into the source code for a high-level view of how a package is constructed. This is a personal CLI tool built in Go, using Cobra, Viper, and the...

6
cyclocalc
cyclocalc Cycloctane C

Simple math expression evaluator written in C99. Based on Pratt Parsing.

6
p2r
p2r programmersd21 Python

🐍🚀 A static Python-to-Rust transpiler that converts type-annotated Python code into performant and idiomatic Rust, with built-in compilation and exe...

6