ishanvyas22 / awesome-ast-parsers

๐Ÿ˜Ž A curated list of awesome parsers to parse code into an Abstract Syntax Tree (AST).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Awesome AST Parsers Awesome

A curated list of awesome parsers to generate Abstract Syntax Tree(AST) from code. This list contains parsers grouped by language.

Table of Contents

Go

JAVA

  • Spoon - A library to analyze, rewrite, transform, transpile Java source code. It parses source files to build a well-designed AST with powerful analysis and transformation API.

JavaScript / ECMAScript

  • acorn - A tiny, fast JavaScript parser, written completely in JavaScript.
  • Espree - An Esprima-compatible JavaScript parser.
  • Esprima - A high performance, standard-compliant ECMAScript parser written in ECMAScript (also popularly known as JavaScript).

JSX

  • acorn-jsx - An acorn plugin to parse React.js JSX code into AST.

JSON

PHP

  • glayzzle/php-parser - A PHP Parser written in NodeJS to extract AST or tokens (PHP5 and PHP7).
  • microsoft/tolerant-php-parser - An early-stage PHP parser designed for IDE usage scenarios.
  • nikic/PHP-Parser - A PHP parser written in PHP supports PHP 5.2 to PHP 8.0. Its purpose is to simplify static code analysis and manipulation.

PHP - Docblock Parser

Python

  • python/typed_ast - typed_ast is a Python 3 package that provides a Python 2.7 and Python 3 parser similar to the standard ast library.

Scala

  • Scalameta - Library to read, analyze, transform and generate Scala programs.

SQL

  • taozhi8833998/node-sql-parser - Parse simple SQL statements into an abstract syntax tree (AST) with the visited tableList and convert it back to SQL.
  • godmodelabs/flora-sql-parser - Parse simple SQL statements into an abstract syntax tree (AST) and convert it back to SQL.
  • sqlparser-rs/sqlparser-rs - A crate that provides an ANSI:SQL 2011 lexer and parser that can parse SQL into an Abstract Syntax Tree (AST).

TOML

โค๏ธ Support

Do you like this project? Support it by donating:

Buy Me A Coffee

or Paypal me

or Contact me on Codementor

Follow me

About

๐Ÿ˜Ž A curated list of awesome parsers to parse code into an Abstract Syntax Tree (AST).

License:MIT License