Support multiple accept states.
Add fsm.match API.