ByteAutomata for implementing a hard-coded finite-state machine
github.com