a very simple, state machine based parser

Just for comparison I've added a simple parser - thou not so concise and self explanatory, it has even better performance.