News for hackers. Stuff that matters.
Re:State Machines by aerique on Tuesday May 15, 2012 @04:02AM (#3975522)
Here's a fun Scheme example: http://ll1.ai.mit.edu/shriram-talk.pdf

The state machine would look something like this:

    (define a
       (automaton init
                 (init : (c -> loop))
                 (loop : (a -> loop)
                         (d -> loop)
                         (r -> end))
                 (end : )))

There are no comments on this comment yet.