Grammar book
A grammar book is a book or treatise describing the grammar of one or more languages. In linguistics, such a book is itself frequently referred to as a grammar.
While not the first, the Aṣṭādhyāyī is the oldest linguistic and grammar text.