summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2023-07-10 16:39:01 +0200
committerMarc Vertes <mvertes@free.fr>2023-07-10 16:39:01 +0200
commit88f557e2c03411dff1861ffbb8b6a3639b22bc0b (patch)
treefb18ce7ce3b0a2f43d15d99e69916fd62632ff5f /readme.md
parent07f8c74056c1fcf20c49137fdf3b1b1b72ad316a (diff)
readme: how to display AST using graphviz
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/readme.md b/readme.md
index fddc81b..7c28d83 100644
--- a/readme.md
+++ b/readme.md
@@ -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`