All Projects → reflog → Go2ast

reflog / Go2ast

Transform Go code into it's AST

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Go2ast

Php Parser
PHP parser written in Go
Stars: ✭ 787 (+1110.77%)
Mutual labels:  ast
Saul
Tool to use a parsed AST to understand its tokens and regenerate code, tool usage is bound by developer-client privelidge, better call saul.py! 👍📞👨⚖️⚫🐍
Stars: ✭ 14 (-78.46%)
Mutual labels:  ast
Astnorm
AST normalization experiment
Stars: ✭ 42 (-35.38%)
Mutual labels:  ast
Estraverse
ECMAScript JS AST traversal functions
Stars: ✭ 795 (+1123.08%)
Mutual labels:  ast
Esdispatch
trigger events based on esquery selectors during a traversal of a SpiderMonkey format AST
Stars: ✭ 9 (-86.15%)
Mutual labels:  ast
Sql Composer
Standalone SQL composer DSL for Ruby
Stars: ✭ 26 (-60%)
Mutual labels:  ast
Esprima
ECMAScript parsing infrastructure for multipurpose analysis
Stars: ✭ 6,391 (+9732.31%)
Mutual labels:  ast
Spoon
Spoon is a metaprogramming library to analyze and transform Java source code (up to Java 15). 🥄 is made with ❤️, 🍻 and ✨. It parses source files to build a well-designed AST with powerful analysis and transformation API.
Stars: ✭ 1,078 (+1558.46%)
Mutual labels:  ast
Vscode Tsquery
TSQuery extension for Visual Studio Code
Stars: ✭ 13 (-80%)
Mutual labels:  ast
Grunt Amdcheck
Uses AST to find and remove unused dependencies in AMD modules.
Stars: ✭ 41 (-36.92%)
Mutual labels:  ast
Proposal Binary Ast
Binary AST proposal for ECMAScript
Stars: ✭ 831 (+1178.46%)
Mutual labels:  ast
Metric Parser
📜 AST-based advanced mathematical parser written by Typescript.
Stars: ✭ 26 (-60%)
Mutual labels:  ast
Pyc Cfg
Pyc-cfg is a pure python control flow graph builder for almost all Ansi C programming language.
Stars: ✭ 29 (-55.38%)
Mutual labels:  ast
Micromark
the smallest commonmark compliant markdown parser that exists; new basis for @unifiedjs (hundreds of projects w/ billions of downloads for dealing w/ content)
Stars: ✭ 793 (+1120%)
Mutual labels:  ast
Babel Plugin Ast
使用 babel 进行 AST 分析和处理
Stars: ✭ 44 (-32.31%)
Mutual labels:  ast
Astring
🌳 Tiny and fast JavaScript code generator from an ESTree-compliant AST.
Stars: ✭ 757 (+1064.62%)
Mutual labels:  ast
Hive sql ast
利用Druid SQL Parser解析HiveSQL日志,自动构建字段级别的血缘关系及主外键的自动抽取
Stars: ✭ 20 (-69.23%)
Mutual labels:  ast
Csstree
A tool set for CSS including fast detailed parser, walker, generator and lexer based on W3C specs and browser implementations
Stars: ✭ 1,121 (+1624.62%)
Mutual labels:  ast
Graphql Factory
A toolkit for building GraphQL
Stars: ✭ 44 (-32.31%)
Mutual labels:  ast
Cppast
Library to parse and work with the C++ AST
Stars: ✭ 1,003 (+1443.08%)
Mutual labels:  ast

Welcome to go2ast 👋

Version License: MIT Twitter: reflog

Transform Go code into it's AST

Usage

echo "a := 1" | go run main.go

Example output

[]ast.Stmt {
        &ast.AssignStmt {
                Lhs: []ast.Expr {
                        &ast.Ident {
                                Name: "a",
                        },
                },
                Tok: :=,
                Rhs: []ast.Expr {
                        &ast.BasicLit {
                                ValuePos: 30,
                                Kind: INT,
                                Value: "1",
                        },
                },
        },
}

WASM Demo

Try this live: https://reflog.github.io/go2ast/

Author

👤 Eli Yukelzon

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].