From 88f557e2c03411dff1861ffbb8b6a3639b22bc0b Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 10 Jul 2023 16:39:01 +0200 Subject: readme: how to display AST using graphviz --- readme.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'readme.md') 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` -- cgit v1.2.3