Added stateful parsing loops.

Added the parsedState and parsedStateL functions for stateful variations of
parsed and parsedL.

--HG--
extra : amend_source : 95a8695e125b4739d6620fdfbc09348f212181a1