1st draft of PHP parser