Skip to content
/ astdot Public

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

Notifications You must be signed in to change notification settings

Rekihyt/astdot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages