If it's worth saying, but not worth its own post, then it goes here.
Notes for future OT posters:
1. Please add the 'open_thread' tag.
2. Check if there is an active Open Thread before posting a new one. (Immediately before; refresh the list-of-threads page before posting.)
3. Open Threads should start on Monday, and end on Sunday.
4. Unflag the two options "Notify me of new top level comments on this article" and "
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.
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.