Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gostaticanalysis/godump
Tool: godump dumps AST and SSA IR of given source codes
https://github.com/gostaticanalysis/godump
Last synced: about 1 month ago
JSON representation
Tool: godump dumps AST and SSA IR of given source codes
- Host: GitHub
- URL: https://github.com/gostaticanalysis/godump
- Owner: gostaticanalysis
- License: mit
- Created: 2020-07-10T15:48:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-10T15:48:54.000Z (over 4 years ago)
- Last Synced: 2024-08-02T20:46:22.478Z (4 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 23
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome - gostaticanalysis/godump - 07 star:0.0k fork:0.0k Tool: godump dumps AST and SSA IR of given source codes (Go)
README
# godump
godump dumps AST and SSA IR of given package.
## Usage
### Dump AST
```sh
$ godump /tmp/main.go
/tmp/main.go
File
├── Doc
├── Package = /tmp/main.go:1:1
├── Name
│ └── Ident
│ ├── NamePos = /tmp/main.go:1:9
│ ├── Name = main
│ └── Obj
...
```### Dump SSA IR
```sh
$ godump -mode=ssa /tmp/main.go
command-line-arguments.main
Block 0
*ssa.Call println("hello, world":string)
*ssa.Return return
```