grammar conversion scripts