Please consider any code you write for this task to be production quality, meaning that it should follow your normal development process as much as possible. Please ...
Use fsm-iterator to implement a finite state machine generator function without the need for generator function* syntax. This is a perfect for library authors that need to use generators but don't ...