Closed UnixJunkie closed 8 years ago
You could look into ocamlgraph, see if it's possible (or feasible, because I know it's possible) to make a graph (tree) structure out of the AST. You then get graphviz for free.
Alternatively, you could use a fold visitor. I would still produce a data structure instead of graphviz text directly.
Both approaches may benefit from code generation.
I used ocamlgraph in the past, it is indeed a nice candidate.
this is not so much needed anymore
so that the dotty command can create the graph