Re:Show HN: Finite State Machine for Go
by maxpersson on Friday September 19, 2014 @01:23AM
(#8339105)
That looks really cool, awesome to be able to generate static FSM code. I use my FSM (and started to use Jake Gordon's) when I need a lightweight state variable, a step up from a collection of bools when it starts to get messy with lots of ands and ors.
Zed Shaw wrote a great essay about state charts in Ragel:
http://www.zedshaw.com/essays/ragel_state_charts.html
The official docs:
http://www.complang.org/ragel/ragel-guide-6.8.pdf