Grammar is the study of rules governing the use of language. The set of rules governing a particular language is the grammar of that language; thus, each language can be said to have its own distinct grammar. Grammar is part of the general study of language called linguistics. Grammar is a way of thinking about language.
The subfields of contemporary grammar are phonetics, phonology, morphology, syntax, semantics, and pragmatics. Traditional grammars include only morphology and syntax.