Comment Comment by endgame Zed Shaw's article about building state machines with ragel might interest you: http://www.zedshaw.com/essays/ragel_state_charts.html parent endgame 14 years ago