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)

chewy-diff
chewy-diff jonatas Ruby

Analyze diff changes through the AST representation

1
interface-merge
interface-merge rikukissa TypeScript

Merge TypeScript interfaces together

1
tdast-util-to-json
tdast-util-to-json tdast JavaScript

tdast utility to serialize tdast to JSON (array)

1
tdast-util-to-markdown-table
tdast-util-to-markdown-table tdast JavaScript

tdast utility to serialize tdast to a markdown table

1
dependency-parser
dependency-parser sanyinchen Java

Jvm class dependency parser

1
PPark
PPark DifftyLab Python

🔰 PPark · Advanced Lexer based on regex

1
go-astk
go-astk dnephin Go

Go abstract syntax tree toolkit

1
simpleAST
simpleAST lguzzon-NIM Shell

Simple AST in NIM

1
L19-AST
L19-AST misachi C++

Abstract Syntax Tree(WIP)

1
compiler-design
compiler-design ramyani-ghosh C

Modelling if-else construct in C

1
ASTSerialization
ASTSerialization xurongchen C#

Serialization and deserialization implementations for Microsoft.ProgramSynthesis.AST

1
zen
zen atlx TypeScript

Someone spends way too much time in his computer.

1
php-parser-to-php-ast
php-parser-to-php-ast TysonAndre PHP

Abandoned. Supports only PHPParser 3. convert PHPParser\Node to \ast\Node. See https://github.com/TysonAndre/tolerant-php-parser-to-php-ast/ for bette...

1
retina
retina ajerit Ruby

Ruby interpreter for Retina language

1
sumer
sumer kaelzhang JavaScript

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

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

The super tiny JSX implementation.

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

Prettier configuration targeting reduced diff churn and enhanced AST

1
mathinterpreter
mathinterpreter 04fara Java

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

1
astley.js
astley.js shopjs CSS

👇 Build a website from an JSON-LD AST.

1
tsx2svelte
tsx2svelte outerlook TypeScript

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

1
jsmod
jsmod tHBp JavaScript

JS Code Modification Utility for rapid code changes

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
grammar-pdi
grammar-pdi Soontao Go

Grammar of PDI

1
jastgen
jastgen Jacarte TypeScript

Generate generic AST json structure for js files using babel

1
MarkdownTools
MarkdownTools stevehjohn C#

Teaching myself about parsing

1
model2markdown
model2markdown trafficstars Go

Generate a markdown document for a golang struct (autodocumentation)

1
jsontree
jsontree GeorgeGkas

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

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
babel-plugin-overload-operators
babel-plugin-overload-operators dboikliev JavaScript

A babel compiler plugin providing support for operator overloading.

1
MyPL
MyPL RudyB Python

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

1
frequency-mangle
frequency-mangle WJsjtu JavaScript
1
parsetree
parsetree syntaxable

Interact with parsed code trees using familiar selector patterns

1
route-parse
route-parse forthedamn TypeScript

AST for koa-decorator and koa-router-decorators

1
babel
babel ducesoft Java

An Language Transformer to Translate Any Language to Other Language

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

Extracts code2seq compatible datasets from PHP source files.

1
astpath
astpath nick-jones Go

XPath query over Go ASTs

1
valley
valley seeruk Go

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

1
rduk-expression
rduk-expression rd-uk JavaScript

Generate abstract syntax tree

1
lox
lox dejour TypeScript

lox language

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

a webpack loader to import smarty template as AST

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

tdast utility to transform a JS array into tdast

1
Jackson-Immutable-AST
Jackson-Immutable-AST Portfoligno Kotlin

Immutable JSON AST types with first-class Jackson support

1
VisualScriptTool
VisualScriptTool omidshahbazi
1
graphql-ast-helpers
graphql-ast-helpers Fanatics Go

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

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

Overload React component’s defaultProps using .corianderc file

1
xylem
xylem aarant Python

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

1
strparse
strparse go-toolsmith Go

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

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

TxtAST to HTML string.

1
envision-jsx
envision-jsx jeshicawang JavaScript

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

1
easy-gql
easy-gql abihf JavaScript

GraphQL tag: easy mode

1