reflog / Go2ast
Transform Go code into it's AST
Stars: ✭ 65
Labels
Projects that are alternatives of or similar to Go2ast
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
Esdispatch
trigger events based on esquery selectors during a traversal of a SpiderMonkey format AST
Stars: ✭ 9 (-86.15%)
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
Grunt Amdcheck
Uses AST to find and remove unused dependencies in AMD modules.
Stars: ✭ 41 (-36.92%)
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
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
Welcome to go2ast 👋
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].