simpleMode

Create a StreamParser from a simple mode spec — a set of named states, each containing a list of regex-based rules.