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)

stmdency
stmdency zhongjiajie Python

A Python library for extracting dependencies between statements

2
chibicc-wyj
chibicc-wyj wyjoutstanding C

A compiler construction step by step

2
docast-parse
docast-parse flex-development TypeScript

unified compliant file parser for docast

2
PHP-Parser
PHP-Parser Verdancy PHP

PHP-Parser is a PHP parser written in PHP, designed to make it easy to analyze and manipulate PHP code. It supports PHP versions 5.2 to 8.1 and can be...

2
chip
chip coldchip C

The Chip Programming Language

2
expression-compiler
expression-compiler paulalves C#

A simple expression compiler, without libraries, written entirely in C#

2
bscript
bscript gchudnov Scala

BScript - AST Evaluation & Debugging

2
vverilog
vverilog hamidb80 Nim

Verilog parser in nim

2
babel-plugin-exercise
babel-plugin-exercise inblossoms JavaScript

⚙️learn about babel under the hood

2
eclipse-extensions
eclipse-extensions MaisiKoleni Java

Eclipse Extensions by Christian Femers mainly for JDT

2
COOL_COMPILER
COOL_COMPILER TUJJIEVE Java

Cool compiler created with LLVM IR as intermediate code

2
pydocspec
pydocspec tristanlatr Python

Pydocspec is a object specification for representing API documentation of a collection of related python modules.

2
yamler
yamler AmrDeveloper Dart

YAML modification program to parse, generate and modify yaml code and comments

2
qC
qC alexpnt C

qC - A compiler for a subset of the C language

2
jasat
jasat r17x JavaScript

Codemod for JavaScript Stuff (Jasat is shortname)

2
JavaFyPy
JavaFyPy maldil Java

adapting Java AST mining tools to Python

2
combustion
combustion Matthias-Fauconneau Rust

Reaction rates and transport properties

2
pg-grammar
pg-grammar martianboy JavaScript

Experimental SQL parser for PostgreSQL

2
dart_ast_viewer
dart_ast_viewer mj-hd Dart

AST Viewer for Dart language.

2
executanti
executanti allindevelopers Vue

Reverse engineer and Web version of "Furnica" and "Cangourou"

2
xipe
xipe nikgalushko Go

useful abstractions over go ast

2
tiny-gopiler
tiny-gopiler xxxle0 Go

Build a small Go compiler

2
sxscript
sxscript lofcz C#

Embeddable scripting language for C#. WIP. Goals: async/await, il bytecode, safe by default, performance.

2
tiny-c
tiny-c afnanenayet C

Work from my compilers class, in which we implemented an AST, a few optimizations, and linear scan register allocation for a subset of the C language.

2
another-super-tiny-compiler
another-super-tiny-compiler hanks Python

Python version of the super tiny compiler project

2
pisang
pisang yoshuajoe Go

Pisang is fun.

2
MHL
MHL Artentus Rust

A simple imperative language primarily targeting low-performance microprocessors

2
d8s-python
d8s-python democritus-project Python

Democritus functions for working with Python ASTs.

2
java-code-diff
java-code-diff phinehasz Java

java file tokenized diff based on myers algorithm.

2
trastpiler
trastpiler AgronKabashi JavaScript

Agnostic and extensible transpiler for ASTs

2
go-expression-calculator
go-expression-calculator arxeiss Go

Custom implementation of calculator handling operator precedence and parentheses.

2
doxygen-parser
doxygen-parser openllb Go

A simple parser for doxygen docs

2
matrix-calculator
matrix-calculator ypaskell Yacc

matrix-calculator syntax parser

2
c0-parser
c0-parser kibaamor C++

C0语言的词法分析和抽象语法树(AST)分析器

2
deno-protoc-parser
deno-protoc-parser keithamus TypeScript

Parse Google Protocol Buffer DSL into an AST, which can be converted into JSON or back into the Protocol Buffer DSL.

2
your-language
your-language codinghusi Rust

A full blown compiler generator with a goal of a clear design and huge flexibility. It even gives you access to error handling and further analysis.

2
parseva-math
parseva-math nrmancuso Java

Compute mathematical expressions via abstract syntax tree. Built with Java and ANTLR4.

2
meet-lang-node
meet-lang-node bingxio JavaScript

Meet Programming Language

2
jafjp
jafjp zzyjsj Go

javascript ast for xss jsonP

2
gua
gua tsukanov-as Lua

go+lua=gua (experimental programming language)

2
REPL
REPL blinky-z C++

A Read–Eval–Print Loop (REPL) and Better Bash Lang & Compiler written in C++

2
gherkin-io
gherkin-io gherking TypeScript

Tool to read/write Gherkin feature files and to work with Gherkin-AST

2
SublimeLinter-contrib-solhint
SublimeLinter-contrib-solhint idrabenia Python

This linter plugin for SublimeLinter provides an interface to solhint

2
pyg
pyg walterl Python

PYthon Grep: Python syntax-aware grep

2
pretty-format-ast
pretty-format-ast babel-utils JavaScript

Pretty format plugin to print ASTs prettier

2
macaca
macaca cloustone Go

A new language based on Monkey language

2
parsimmon-experiment
parsimmon-experiment halfzebra TypeScript
2
radform
radform hennessyevan TypeScript

⚡️ Headless (Bring your own UI) Drag and Drop Form Builder for React

2
GCCTranslationUnitParser
GCCTranslationUnitParser cleversonledur C++

This is a parser that I created using ANTLR. This parses the translation unit file generated by GCC when using the -fdump-translation-unit flag.

2
pug-uses-variables
pug-uses-variables ezhlobo JavaScript

Find all JavaScript variables used in pug template

2