Simple event based text parser.