sanskrit is a standardized dialect of old indo-aryan. its linguistic ancestry can be traced back to proto-indo-european. the indo-european aryan migration theory proposes that the indo-europeans migrated from the central asian steppes into south asia during the early 2nd millennium bc, which brought the indo-european language sanskrit with them. the main script used to write sanskrit is devanāgarī, but it can be written in the scripts of various other indian languages and is sometimes written in the latin alphabet. historically, it was written in the ancient and holy brāhmī script.