I have made several menus using FSM's but with a VERY clunky interface. I took a year long break from programming to facilitate a relocation and just tonight re-wrote my old FSM code.
It can be seen HERE
The problem with my code is it requires heavy rework of the StateMachine class and the event processor whenever you change the implementation. As this is on an embedded device I can not use the BOOST::FSM so I want to write my own class that is robust enough to handle things like menus and programming antilogarithms (ICSP for a PIC for example is a simple FSM)
How would you guys recommend I make my state machine more useable?