generate grammar on clean