update grammar spec