Final version of grammar (I hope).