astdot

Prints a dot graph of a nim ast dumped using the `dumpTree` macro.

Abandoned Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version Unknown
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Tags

Installation

nimble install astdot
choosenim install astdot
git clone https://github.com/Rekihyt/astdot

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
astdot - - - - - - -

Source

Repository https://github.com/Rekihyt/astdot
Homepage https://github.com/Rekihyt/astdot
Registry Source nimble_official

README

Astdot

Print a dot graph of a nim ast dumped using the dumpTree macro.

example tree

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