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)

astdot
astdot true-grue Python

Simple Python AST visualizer

19
ktcodeshift
ktcodeshift orangain Kotlin

Toolkit for running codemods over multiple Kotlin files inspired by jscodeshift.

19
macschema
macschema progrium Go

Toolchain for generating JSON definitions of Apple APIs

19
markdown-tree-parser
markdown-tree-parser ysugimoto JavaScript

Parse markdown string to Abstract Syntax Tree which we defined.

19
go2proto
go2proto akkagao Go

根据Golang定义的接口生成proto文件

19
rector-cakephp
rector-cakephp deprecated-packages PHP

[DEPRECATED] Use following package instead

19
astutils
astutils johnyf Python

Bare essentials for building abstract syntax trees, and skeleton classes for PLY lexers and parsers.

19
dive-into-ast
dive-into-ast azu

Dive into AST(Abstract Syntax Tree) in JavaScript.

19
js-ast-hash
js-ast-hash azu JavaScript

Output hash value of JavaScript AST.

19
sdk
sdk codeconverter C#

SDK for CodeConverter.net

19
lilt
lilt Quelklef Nim

LILT: noun, A characteristic rising and falling of the voice when speaking; a pleasant gentle accent.

19
wx2bd
wx2bd xujie-phper

微信和百度小程序的互转工具,脚本转换率目标为100%,持续更新中~~

19
code-explorer
code-explorer vmikhailov C#

Ontology-driven codebase indexer and query service. Parses C#, TypeScript/JS, Go, Python, and SQL into an embedded graph database. Exposes Model Conte...

18
LuauParser
LuauParser vantoanvh Luau

A full & optimized Luau parser in luau, both AST and CST with error recovery & various parsing options

18
Audioset
Audioset IvanBirkmaier Jupyter Notebook

This repository is built with a focus on practical ways to obtain and work with the audio data of audioset. You can use this repository to download an...

18
markup.json
markup.json metaory JavaScript

A minimal markup DSL and AST for JSON to HTML, SVG or XML-like. CLI and Lib

18
mutates
mutates IKatsuba TypeScript

Still afraid to do something with AST? Mutates the AST, not your brain.

18
solidity-antlr4
solidity-antlr4 jeasonstudio TypeScript

✨ Solidity Language Lexer and Parser, generated by official ANTLR4 grammar.

18
Tea-Sitter
Tea-Sitter tokyRT TypeScript

An AST explorer web app for C using Tree Sitter

18
candice
candice gabivlj Go

Candice, a dead simple language and multi-platform.

18
tst-expression
tst-expression Hookyns TypeScript

Expression trees for TypeScript similar to C#. Expression trees represent code in a tree-like data structure, where each node is an expression, for ex...

18
py-models-parser
py-models-parser xnuinside Python

Static Python models parser that extracts ORM, Pydantic, and dataclass models into a unified structure (no code execution).

18
jarvis
jarvis rajasegar JavaScript

JARVIS - Write me a codemod

18
go-annotation
go-annotation handsomestWei Go

golang 注释实现类似java的注解机制。基于ast语法解析和monkey动态代理。目前实现@Transactional的demo

18
CoLI
CoLI gridaco TypeScript

Computer Language Interface. A Code builder (json, jsx, js, ts, dart, css, xml, html, python) AST Builder / Parser

18
syntaxis
syntaxis shobrook Python

Analyze usage patterns of imported modules in a Python program

18
compiler
compiler xp-framework PHP

Compiles future PHP to today's PHP.

18
axtor
axtor cdl-saarland C++

AST - Extractor for LLVM

18
magic-tree
magic-tree braintripping Clojure

whitespace-aware Clojure source code manipulation.

18
ts-iqueryable
ts-iqueryable WimJongeneel TypeScript

Expressions and IQueryables in TypeScript

18
iroun
iroun pistis JavaScript

Name analyzer written in Javascript

18
dedupimport
dedupimport nishanths Go

Deduplicate named and unnamed imports of the same import path in Go files

18
jscodeshift-collections
jscodeshift-collections rajasegar JavaScript

Collections for some AST nodes in jscodeshift

18
EntropyAudit
EntropyAudit adroamccullinp Python

Static auditor for randomness and nonce hygiene in Python source - flags weak PRNGs, hardcoded keys, reused counters, static IVs, short salts. CWE-330...

17
typescript-expression-language
typescript-expression-language andreasnicolaou TypeScript

Zero-dependency TypeScript implementation of Symfony's Expression Language. Safely parse and evaluate dynamic expressions in Node and the browser, wit...

17
Fgpt
Fgpt kardaneh Jupyter Notebook

FGPT is an AST-based transpiler that converts production scientific Fortran into NumPy Python and optional JAX/Equinox modules for GPU acceleration an...

17
muad-dib
muad-dib DNSZLSK JavaScript

Real-time npm/PyPI supply-chain threat detection. Behavioral chain analysis, AST scanning, IOC feeds, and compound scoring engine.

17
Noctyra
Noctyra 0p4n1k Python

AST-based Python code transformation & deobfuscation framework

17
Ganges
Ganges psidh Go

Ganges is a modern, dynamically typed, interpreted language with Sanskrit-inspired syntax. Built in Go, Ganges is designed to be fun, expressive, and...

17
codegrapher
codegrapher LaurEars Python

Code that graphs code

17
vastly
vastly mavoweb JavaScript

Everything you need to support a custom formula language

17
vue-sfcmod
vue-sfcmod Sidnioulz TypeScript

Vue 3 codemod framework for SFC scripts and templates

17
html2latex
html2latex pankaj28843 Python

Convert WYSIWYG HTML to LaTeX with typed ASTs, full table support, and 100% test coverage

17
antislop
antislop skew202 HTML

A blazing-fast, multi-language linter for detecting AI-generated code slop

17
vscode-babel-ast-explorer
vscode-babel-ast-explorer JennieJi HTML
17
ini
ini nonzzz Go

A standard golang ini parser

17
vast
vast JamesPhillipsUK Python

VisAST: Building and visualising Abstract Syntax Trees for Python code.

17
wasm-ast
wasm-ast misalcedo Rust

A Rust-native WebAssembly syntax model useful for generating, reading, and emitting WebAssembly code.

17
ini
ini wlevene Go

ini parser for golang

17
astrologic
astrologic pomponchik Python

Автоматическая оптимизация кода на уровне AST

17