CSV parsing state machine.