cooler parser state machine

too drunk for documentation

thought of this in the best park in the world in fray bentos. dont
regret it.