Hello,
why I can parse source codes into ast. Not at compile time. I can create a static code analyze a draw to UML or others.
thanks
I am sure you can do that. You probably want to import compiler package parse the AST that way.
You probably want to start with nim pretty: https://github.com/nim-lang/Nim/blob/devel/nimpretty/nimpretty.nim
Site note: UML is so 2000s, no one seriously uses it.