grammar is the study of words, how they are used in sentences, and how they change in different situations. the ancient greeks used to call it "grammatikē tékhnē", the craft of letters. it can have any of these meanings: