Rules or principles; specifically the rules of grammar.
Morphology, accidence; the grammatical science of word-forms and inflection.
Syntax; the grammar of how words combine in sentences.