Grammar is a system of rules, governing the formation and combination of the main units in a semiotic system.
Linguistics
Linguistics is the scientific study of language. It encompasses the analysis of every aspect of language, as well as the methods for studying and modeling them. The traditional areas of linguistic analysis include phonetics, phonology, morphology, syntax, semantics,...