Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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
```