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)

babylon
babylon babel JavaScript

PSA: moved into babel/babel as @babel/parser -->

1.7k
mdast
mdast syntax-tree

Markdown Abstract Syntax Tree format

1.5k
py2many
py2many py2many Python

Transpiler of Python to many other languages

1.3k
rector-laravel
rector-laravel driftingly PHP

Rector upgrades rules for Laravel

1.3k
astring
astring davidbonnet JavaScript

🌳 Tiny and fast JavaScript code generator from an ESTree-compliant AST.

1.2k
meriyah
meriyah meriyah TypeScript

A 100% compliant, self-hosted javascript parser - https://meriyah.github.io/meriyah

1.2k
js-deobfuscator
js-deobfuscator kuizuo JavaScript

An automated JavaScript deobfuscation tool based on Babel AST, with an online playground, CLI, and programmable API.

1.2k
solhint
solhint protofire JavaScript

Solhint is an open-source project to provide a linting utility for Solidity code.

1.1k
wakaru
wakaru pionxzh Rust

🔪📦 Javascript decompiler for modern frontend

1.1k
typehole
typehole rikukissa TypeScript

TypeScript development tool for Visual Studio Code that helps you automate creating the initial static typing for runtime values

1k
exprtk
exprtk ArashPartow C++

C++ Mathematical Expression Parsing And Evaluation Library https://www.partow.net/programming/exprtk/index.html

1k
ModiScript
ModiScript VPanjeta Python

Acche din aa gaye

1k
unist
unist syntax-tree

Universal Syntax Tree used by @unifiedjs

1k
humanize-ppt
humanize-ppt LearnPrompt Python

AST-based outline director for human-centered AI presentation workflows.

995
proposal-binary-ast
proposal-binary-ast tc39

Binary AST proposal for ECMAScript

984
estraverse
estraverse estools JavaScript

ECMAScript JS AST traversal functions

969
php-parser
php-parser z7zmey Go

PHP parser written in Go

958
hast
hast syntax-tree

Hypertext Abstract Syntax Tree format

914
tolerant-php-parser
tolerant-php-parser microsoft PHP

An early-stage PHP parser designed for IDE usage scenarios.

896
esquery
esquery estools JavaScript

ECMAScript AST query library.

893
graphql-go-tools
graphql-go-tools wundergraph Go

GraphQL Router / API Gateway framework written in Golang, focussing on correctness, extensibility, and high-performance. Supports Federation v1 & v2,...

840
webassemblyjs
webassemblyjs xtuc JavaScript

Toolchain for WebAssembly

838
fantomas
fantomas fsprojects F#

FSharp source code formatter

837
putout
putout coderaiser JavaScript

🐊 Pluggable and configurable JavaScript Linter, code transformer and formatter with superpowers 💪: built-in support of js, jsx, ts, markdown, yaml,...

805
node-dependency-tree
node-dependency-tree dependents JavaScript

Get the dependency tree of a module

777
tiny-compiler
tiny-compiler mgechev JavaScript

A tiny evaluator and compiler of arithmetic expressions.

776
rickroll-lang
rickroll-lang Rick-Lang Python

The Rick Roll programming language is a rickroll based, process oriented, dynamic, strong, esoteric programming language. All of the keywords/statemen...

767
axiomcodegraph
axiomcodegraph AxiomCodeAI TypeScript

Turn any codebase into a knowledge graph grounded in formal methods. Your AI agents get exact answers for any code-related task, ensure correctness, a...

747
probe
probe probelabs Rust

AI-friendly semantic code search engine for large codebases. Combines ripgrep speed with tree-sitter AST parsing. Powers AI coding assistants with pre...

741
debundle
debundle 1egoman JavaScript

:card_file_box: A javascript debundler. Takes a Browserify or Webpack bundle and recreates the initial, pre-bundled source.

739
CodeVisualizer
CodeVisualizer DucPhamNgoc08 TypeScript

CodeVisualizer is a powerful VS Code extension that provides two main visualization capabilities: function-level flowcharts for understanding code con...

702
orgajs
orgajs orgapp JavaScript

parse org-mode content into AST

660
CppAst.NET
CppAst.NET xoofx C#

CppAst is a .NET library providing a C/C++ parser for header files powered by Clang/libclang with access to the full AST, comments and macros

625
treewalker.nvim
treewalker.nvim aaronik Lua

A neovim plugin for moving around your code in a syntax tree aware manner

623
astroid
astroid pylint-dev Python

A common base representation of python source code for pylint and other projects

590
ast-explorer
ast-explorer sxzz TypeScript

A web tool to explore the ASTs generated by parsers.

579
tiny-compiler
tiny-compiler zakirullin C

A tiny compiler for a language featuring LL(2) grammar. With Lexer, Parser, ASM-like codegen and VM. Complex enough to give you a flavour of how the "...

579
officeParser
officeParser harshankur Rich Text Format

A robust, strictly-typed Node.js and Browser library for parsing office files into a rich Abstract Syntax Tree (AST) and generating high-fidelity outp...

571
php-parser
php-parser glayzzle JavaScript

NodeJS PHP Parser - extract AST or tokens

565
postcss-rs
postcss-rs postcss-rs Rust

🚀 Fast and 100% API compatible postcss replacer, built in Rust

562
Reinforced.Typings
Reinforced.Typings reinforced C#

Converts C# classes to TypeScript interfaces (and many more) within project build. 0-dependency, minimal, gluten-free

551
escope
escope estools JavaScript

Escope: ECMAScript scope analyzer

551
Auditor
Auditor TheAuditorTool

Release channel for TheAuditor — see blog.theauditortool.com

549
martian
martian tryfabric TypeScript

Markdown to Notion: Convert Markdown and GitHub Flavoured Markdown to Notion API Blocks and RichText 🔀📝

541
vermin
vermin netromdk Python

Concurrently detect the minimum Python versions needed to run code

541
ClangQL
ClangQL AmrDeveloper Rust

ClangQL is a tool that allow you to run SQL-like query on C/C++ Code instead of database files using the GitQL SDK

539
vscode-blockman
vscode-blockman leodevbro TypeScript

VSCode extension to highlight nested code blocks

515
tenko
tenko pvdz JavaScript

An 100% spec compliant ES2021 JavaScript parser written in JS

511
luaparse
luaparse fstirlitz JavaScript

A Lua parser written in JavaScript

501
tree-sitter-language-pack
tree-sitter-language-pack xberg-io Rust

Parse and understand source code in 300+ languages from every major language, with one dependency and no grammars to compile.

488