When theoreticians code:

/* The following table is intended to implement this DFA (in 'dot'
format). Note that 2 and 3 are "hidden" states used to step through
the possible out edges of state 1.

digraph html_filter {
0 -> 1 [label="<"];
0 -> 0;
1 -> 4 [label="'"];
1 -> 5 [label="\""];
1 -> 0 [label=">"];
1 -> 1;
4 -> 1 [label="'"];
4 -> 4;
5 -> 1 [label="\""];
5 -> 5;
}
*/

#automatatheory #codinglike1969

@bremner I'm trying to work out what your point is for this. I've written, and write, code very like this, so I'm wondering whether you think it's wrong because there's a much better way, and if so, what that is.
@ColinTheMathmo Well, I wrote it. So, I guess I don't know a better way in the context. But it's a pretty low level way of doing a task like tokenizing.
@ColinTheMathmo Maybe the point was more that it takes a certain mindset to write comments ment to be pasted into "dot" to draw a graph.
@bremner @ColinTheMathmo I've seen code documentation tools that will generate diagrams from dot syntax in comments.
@christianp @ColinTheMathmo Interesting. We're already using doxygen, but it seems to only know how to draw class diagrams.