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 (1548)

go-pylint
go-pylint gdhameeja Go

Port of pylint in Golang

1
print-highlighted-ast
print-highlighted-ast codemodsquad TypeScript

print a babel AST with specific nodes highlighted, for debugging codemods

1
KLMN-Compiler
KLMN-Compiler michgur Java

The JVM toy-compiler framework

1
go-toolsmith.github.io
go-toolsmith.github.io go-toolsmith

Site for combined documentation, examples, external references, and other useful stuff.

1
ast
ast grizz-it PHP

An abstraction layer for creating generated logic.

1
goast
goast wellzz Go
1
monkey
monkey jolisper Go

The monkey programming language - https://interpreterbook.com/

1
stan
stan retailnext Go

A Go (golang) library for writing custom "go vet" style tests

1
tech-presentations
tech-presentations EvanCarroll Python

Teaching resources and presentations I've given

1
astp
astp go-toolsmith Go

Package astp provides AST predicates.

1
go_perf_tracker
go_perf_tracker aman-bansal Go

simple tool to autogenerate timing metrics using go ast

1
gpp
gpp mmirolim Go

Go pre preprocessor (ast hacking experiment)

1
tdast-util-to-html-table
tdast-util-to-html-table tdast JavaScript

tdast utility to serialize tdast to a HTML table

1
easy-gql
easy-gql abihf JavaScript

GraphQL tag: easy mode

1
envision-jsx
envision-jsx jeshicawang JavaScript

A developer tool for visualizing a React application's component hierarchy.

1
txtast-to-html
txtast-to-html textlint HTML

TxtAST to HTML string.

1
strparse
strparse go-toolsmith Go

Package strparse provides convenience wrappers around `go/parser` for simple expr/stmt/decl parsing from string.

1
xylem
xylem aarant Python

Convert Python Abstract Syntax Trees (ASTs) to readable source code.

1
babel-plugin-transform-react-default-props
babel-plugin-transform-react-default-props himynameismartin JavaScript

Overload React component’s defaultProps using .corianderc file

1
graphql-ast-helpers
graphql-ast-helpers Fanatics Go

Golang GraphQL AST helpers over the https://github.com/graphql-go/graphql package

1
VisualScriptTool
VisualScriptTool omidshahbazi
1
Jackson-Immutable-AST
Jackson-Immutable-AST Portfoligno Kotlin

Immutable JSON AST types with first-class Jackson support

1
tdast-util-from-array
tdast-util-from-array tdast JavaScript

tdast utility to transform a JS array into tdast

1
smarty-ast-loader
smarty-ast-loader nicholaslee119 JavaScript

a webpack loader to import smarty template as AST

1
lox
lox dejour TypeScript

lox language

1
rduk-expression
rduk-expression rd-uk JavaScript

Generate abstract syntax tree

1
valley
valley seeruk Go

Valley is tool for generating plain Go validation code based on your Go code.

1
astpath
astpath nick-jones Go

XPath query over Go ASTs

1
php-code2seq-extractor
php-code2seq-extractor hadary-ai

Extracts code2seq compatible datasets from PHP source files.

1
babel
babel ducesoft Java

An Language Transformer to Translate Any Language to Other Language

1
route-parse
route-parse forthedamn TypeScript

AST for koa-decorator and koa-router-decorators

1
parsetree
parsetree syntaxable

Interact with parsed code trees using familiar selector patterns

1
frequency-mangle
frequency-mangle WJsjtu JavaScript
1
MyPL
MyPL RudyB Python

A Python Based Recursive Descent Parser, Type-Checker, and Interpreter for MyPL Language

1
babel-plugin-overload-operators
babel-plugin-overload-operators dboikliev JavaScript

A babel compiler plugin providing support for operator overloading.

1
go-tendo
go-tendo andrewlader Go

Go application used to walk a Go project and count the legitimate packages, structs, methods and functions.

1
jsontree
jsontree GeorgeGkas

The JSONTree spec: AST representation of JSON documents based on RFC 8259 internet standard.

1
model2markdown
model2markdown trafficstars Go

Generate a markdown document for a golang struct (autodocumentation)

1
MarkdownTools
MarkdownTools stevehjohn C#

Teaching myself about parsing

1
jastgen
jastgen Jacarte TypeScript

Generate generic AST json structure for js files using babel

1
grammar-pdi
grammar-pdi Soontao Go

Grammar of PDI

1
namarara
namarara glenux Ruby

A library that can parses boolean expressions, builds an binary expression tree and evalue given a set of values

1
jsmod
jsmod tHBp JavaScript

JS Code Modification Utility for rapid code changes

1
tsx2svelte
tsx2svelte outerlook TypeScript

Built to auxiliate a specific 650 project migration from React to svelte

1
astley.js
astley.js shopjs CSS

👇 Build a website from an JSON-LD AST.

1
mathinterpreter
mathinterpreter 04fara Java

Math Interpreter, written in Java, parses and evaluates mathematical expressions.

1
prettier-config-conformance
prettier-config-conformance sambacha JavaScript

Prettier configuration targeting reduced diff churn and enhanced AST

1
the-super-tiny-jsx
the-super-tiny-jsx starandtina JavaScript

The super tiny JSX implementation.

1
sumer
sumer kaelzhang JavaScript

(WIP) sumer is a bash AST parser written in pure JavaScript

1
retina
retina ajerit Ruby

Ruby interpreter for Retina language

1