Abstract PHP grammar parsing