A grammar is a set of rules describing a language.