The history of phonology may be traced back to the <answer>Ashtadhyayi</answer>, the Sanskrit grammar composed by Pāṇini in the 4th century BC. In particular the Shiva Sutras, an auxiliary text to the <answer>Ashtadhyayi</answer>, introduces what can be considered a list of the phonemes of the Sanskrit language, with a notational system for them that is used throughout the main text, which deals with matters of morphology, syntax and semantics.
What is the name of ancient Sanskrit grammar?
Ashtadhyayi