Start afresh on grammar using PHP source as guideline