A simple parser implemented in PHP