'Basic' grammar in Sanskrit may be an oxymoron, but here are some fundamentals.
Sanskrit is an inflected language, meaning that the nouns are declined and the verbs are conjugated.
The Sanskrit language tends toward the subject-object-verb word ordering, but does allow for multiple type of sentence formulations particularly in the sutra form.
There are three principal numbers used in the inflection of the Sanskrit language. These are singular (1 thing), dual (2 things), and plural (many things).
In declining Sanskrit nouns, there are eight cases used. These are nominative, accusative, instrumental, dative, ablative, genitive, locative, and vocative.
Nouns are declined according to their endings, with the exception of pronouns which have specific declensions.
The short a declension:
|Nominative||devas / devah||devau||devās / devaah|
|Instrumental (Obl.+u9aI»)||devena||devābhyām||devais / devaiih|
|Dative (Obl. + Un)||devāya||devābhyām||devebhyas / devebhyah|
|Ablative (Obl)||devāt||devābhyām||devebhyas / devebhyah|
|Genitive (Obl. + akh)||devasya||devayos / devayoh||devānām|
|Locative||deve||devayos / devayoh||deveṣu|
|Vocative||hey deva||hey devau||hey devās / devaah|