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)

ziko-jsx
ziko-jsx zikojs JavaScript

JSX support for ZikoJS

11
vue-service-bay
vue-service-bay flyle-io TypeScript

Your One-Stop Solution for Vue.js Refactoring

11
twinkies
twinkies m512i C

Compiler for the Twinkies programming language compiles to a binary. Twinkies is a statically typed language with C-like syntax.

11
shortcode-tokenizer
shortcode-tokenizer mblarsen JavaScript

Tokenizes a string containing shortcodes and optionally outputs an AST

10
less2sass
less2sass vecerek Ruby

Converts Less projects to Sass based on their AST instead of the search and replace approach.

10
kotlin-elements
kotlin-elements tschuchortdev Kotlin

Extension of the Java annotation processing API to Kotlin types

10
handlebars-lint
handlebars-lint jonschlinkert JavaScript

Pass a context and a string with handlebars templates and lint for missing variables, helpers, block helpers or partials.

10
polix-rpc
polix-rpc polixjs JavaScript

rpc plugin for polix

10
parseStruct
parseStruct pingdai Go

Parse struct by tag from file. Welcome to see my blogs:https://dpjeep.com

10
language-js
language-js diasbruno Haskell

Parser for es6 and es7.

10
LazyCoder
LazyCoder mifopen C#

Writes Typescript for you

10
javascript-es9-parser
javascript-es9-parser hrvolapeter Rust

Javascript evaluator according to ECMAScript

10
veil
veil devigned Go

Veil is a code generator which exposes Golang packages via a generated C ABI that is consumed by host languages through FFI. Currently, Veil supports...

10
solhint
solhint tokenhouse JavaScript

PROJECT MOVED TO https://github.com/protofire/solhint

10
Code2Image
Code2Image ArcelikAcikKaynak Python

Intelligent Code Analysis by Computer Vision Techniques and Application to Vulnerability Prediction

10
hldiff
hldiff JetBrains-Research Kotlin

Language-independent high-level differencing tool

10
scala-macro-tools
scala-macro-tools bitlap Scala

[Experimental] Scala macro tools, includes the supported IntelliJ plugin.

10
tslox
tslox jeroenptrs TypeScript

jlox implementation in Typescript

10
BasicCCompiler
BasicCCompiler aalekhm C

A basic C language compiler from scratch.

10
jscodeshift-typescript
jscodeshift-typescript jesperorb TypeScript

A repo demonstrating jscodeshift in combination with TypeScript and JSX

10
odatafy-parser
odatafy-parser gang-of-fork TypeScript

odata parser for odatafy framework

10
opine
opine ArulselvanMadhavan OCaml

Opine is an OCaml library that unparses the python AST produced by pyre-ast library back to python source code.

10
Sarcasm
Sarcasm davidnemeti C#

Sarcasm is an SDK for creating typesafe, domain-bound grammars. It also has a grammar driven general unparser.

10
astypes
astypes orsinium-labs Python

Python library to infer types for AST nodes. Make the most powerful Python linters and formatters!

10
scxx
scxx Civitasv C++

Scheme interpreter in C++, with the power of modern C++ and RAII.

10
dbge
dbge aranega Python

An extension to IPdb for Python >= 3.11 that supports bytecode stepping, sub-expression stepping/breakpoints, object-centric breakpoints and experimen...

10
solc-json-parser
solc-json-parser sbip-sg Solidity

A Powerful AST Parser for Solidity

10
snippetz
snippetz scalar TypeScript

Opinionated HTTP snippets 🌐

10
lightningcss-ast-viewer
lightningcss-ast-viewer astahmer TypeScript

LightningCSS AST viewer.

10
cpp-ast-example
cpp-ast-example agentcooper C++

Examples of representing and traversing AST (Abstract Syntax Tree) in C++

10
DiagnosticsTools
DiagnosticsTools wieslawsoltes C#

Cross-platform diagnostics, inspection, and tooling for Avalonia UI applications.

10
oko-lang
oko-lang tixonochekAscended JavaScript

👁️ An interpreted, non-esoteric programming language. "Language of vision".

10
typemorph
typemorph astahmer TypeScript

what if zod had a child with ts-morph

10
tiny-compiler
tiny-compiler Sunny-117 Java

实现超级 mini 的编译器 | codegen&compiler 生成代码 | 只需要 200 行代码 | 前端编译原理

10
ioc-arise
ioc-arise stormsidali2001 TypeScript

Arise type-safe IoC containers from your code. Zero overhead, zero coupling.

10
uiquarter
uiquarter fuatkeles TypeScript

Static analysis CLI for UI codebases. Component patterns, dependency graphs, architectural insights, and AI-optimized context generation.

10
hypergrep
hypergrep marjoballabani Rust

A better grep for AI agents. Structural search, call graphs, impact analysis, semantic compression. 87% fewer tokens. 16 languages. Built in Rust.

10
comment-to-assert
comment-to-assert azu TypeScript

[Archived] Move to monorepo

9
bash-codegen
bash-codegen vorpaljs JavaScript

Bash source code generator

9
dust
dust disruptek Nim

DUST is Unattended Syntax Truncation

9
LambCompiler
LambCompiler jiahao42 C++

Compiler for a subset of ANSI C, base on virtual machine (unfinished)

9
svelte-markup-walker
svelte-markup-walker kaisermann TypeScript

A Svelte preprocessor that allows to walk through the AST generated by the svelte parser and modify the markup with MagicString.

9
idea-solidity-solhint
idea-solidity-solhint protofire Kotlin

JetBrains IDEA plugin to provide Solhint code verification

9
ideas
ideas syntax-tree

Share ideas for new utilities and tools built with @syntax-tree

9
sdl
sdl railt PHP

[READ ONLY] Subtree split of the Railt SDL component (see railt/railt)

9
jsonast
jsonast KnisterPeter TypeScript

a json to ast parser which allows error recovery

9
module-definition
module-definition dependents JavaScript

Determines whether a JavaScript file is in the CommonJS, AMD, or ES6 format

9
js_ast
js_ast NautilusJS Java

Parses JavaScript source code to build an AST

9
elm-code-explorer
elm-code-explorer peterszerzo Elm

🗺️ Explore Elm code

9
astdump
astdump wingyplus Go

Golang AST dump command-line

9