mirror of
https://github.com/Rekihyt/astdot
synced 2026-01-15 12:51:37 +00:00
No description
| src | ||
| .gitignore | ||
| astdot.nimble | ||
| example.jpg | ||
| README.md | ||
Astdot
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.
View image
To view output in fim:
astdot | dot -Tjpg | fim -i --autowindow
Feed output from dumpTree
Force recompile (to reprint macros) and pipe into astdot:
nim r -f src/example.nim | astdot
Pipe clipboard
With xclip to paste from clipboard:
xclip -selection clipboard -o | astdot
