State Machine
Methods
Using Finite State Machines. By David E. Cortesi
A compact state machine engine by Ron Braithwaite
Keyword Interpreter Code Generator
See also:
http://www.bknd.com/cc5x/multitasking.shtml
http://dec.bournemouth.ac.uk/forth/jfar/vol7/paper1/toc.html
http://www.actum.com
visually edits state diagrams and outputs code.
http://www.xcprod.com/titan/ZMECH/index.html
ZMech is a complete visual CASE tool that allows complex event driven systems to be interactively designed and debugged using the state machine paradigm.