diff options
| author | Marc Vertes <mvertes@free.fr> | 2023-07-10 16:39:01 +0200 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2023-07-10 16:39:01 +0200 |
| commit | 88f557e2c03411dff1861ffbb8b6a3639b22bc0b (patch) | |
| tree | fb18ce7ce3b0a2f43d15d99e69916fd62632ff5f /readme.md | |
| parent | 07f8c74056c1fcf20c49137fdf3b1b1b72ad316a (diff) | |
readme: how to display AST using graphviz
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -20,3 +20,9 @@ Note: this is highly experimental and unstable. ## Usage `go run ./cmd/gint < ./samples/fib` + +To debug visually the AST, you can set the `DOT` env to a command able +to a display a graphviz dot input, such as `dot -Txlib` or `dotty -` +(for old graphviz versions like mine): + +`DOT="dot -Txlib" go run ./cmd/gint < ./samples/fib` |
