I have a large OCaml code base and would like to obtain some UML-like class/module diagrams from it, similar to what some Java reverse engineering tools do.
These diagrams do not need to be formal UML diagrams, but being able to see at least the names of functions/types defined in each module signature would be very useful to help understanding OCaml code bases. Even better if this could be combined with associations between modules.
Can it be done using ocamldoc
? I know it is able to produce DOT dependence graphs between modules, but I couldn't find out whether it can produce information about each type/function defined in a module.
No, ocamldoc
can't do this, unless you write a corresponding plugin yourself. The closest match to your needs is, as far as I know, Facebook Pfff. It doesn't generate UML, but it has a dependency code vizualizer, that shows the required information as a design structure matrix.