Tom's Obvious Markup Language parser written in PHP