Print a dot graph of a nim ast dumped using the dumpTree
macro.
The theme used is currently hardcoded with colors from my syntax theme oak.
Note: node names are hardcoded, and many are missing colors.
To view output in fim:
astdot | dot -Tjpg | fim -i --autowindow
Force recompile (to reprint macros) and pipe into astdot:
nim r -f src/example.nim | astdot
With xclip to paste from clipboard:
xclip -selection clipboard -o | astdot