Grammar and grouping