Parser written in PHP