EasyFSM is aimed to automatically generate code for finite state machine.