I am working on a software tool that allows programmers to automatically extract FSM-like sequence diagrams from their programs (if they use the convention required by the tool).
You might be interested in Conal Eliott’s work on Compiling to Categories, which enables automatic diagram extraction (among a bunch of other things) for Haskell.
I am working on a software tool that allows programmers to automatically extract FSM-like sequence diagrams from their programs (if they use the convention required by the tool).
Here is a diagram expressing the Merge Sort algorithm
Here is the underlying source code.
I believe this kind of tool could be very useful for code documentation purposes. Suggestions or improvements welcome.
Most of code documentation happens in text files. Maybe it’s worth drawing the diagram in ASCII or unicode characters?
You might be interested in Conal Eliott’s work on Compiling to Categories, which enables automatic diagram extraction (among a bunch of other things) for Haskell.