Skip to content
Compiler Construction course project - Tatar dynamic programming language
Kotlin ANTLR
Branch: master
Clone or download
Latest commit 77cd1c9 Dec 5, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Init from sources for KotlinParser Dec 1, 2018
src Tatar boolean fix Dec 4, 2018
.gitignore updated gitignore Dec 3, 2018
ElanTele.sublime-syntax Tatar grammar fixed,, readme fixes Dec 4, 2018 -_- Dec 5, 2018
build.gradle Tatar grammar fixed,, readme fixes Dec 4, 2018
gradlew Init from sources for KotlinParser Dec 1, 2018
gradlew.bat Tatar grammar fixed,, readme fixes Dec 4, 2018
settings.gradle Init from sources for KotlinParser Dec 1, 2018

ElanTele dynamic language

By Timur Valiev, Vasiliy Alabugin, Nikolay Matyashov, Ilgizar Murzakov and Arsen Kuzmin


Run ./gradlew build to build the project (or bash gradlew build).


After building the project, unpack build/distributions/ElanTele-1.0.tar or build/distributions/ and run bin/ElanTele to start REPL or bin/ElanTele to execute a file.



Example of code

var unsorted := [1, 4, 88, 2, 11, 100, 55]
print unsorted
var length := 1
while unsorted[length] is int loop
    length := length + 1
var i, j
for i in 2..length loop
    for j in 2..(length - 1) loop
        if unsorted[j] < unsorted [j - 1] then
            var temp := unsorted[j]
            unsorted[j] := unsorted[j - 1]
            unsorted[j - 1] := temp
print unsorted

Tatar language support

Run ./ElanTele -t to use ElanTele in Tatar mode

Example of bubble sort in Tatar ElanTele:

вар җыештырылмаган := [1, 4, 88, 2, 11, 100, 55]
яз җыештырылмаган
вар озынлык := 1
әлегә җыештырылмаган[озынлык] бу сан элмәк
    озынлык := озынлык + 1
вар ә, җ
дәвамында ә эчендә 2..озынлык элмәк
    дәвамында җ эчендә 2..(озынлык - 1) элмәк
        әгәр җыештырылмаган[җ] < җыештырылмаган [җ - 1] буочракта
            вар вакытлы := җыештырылмаган[җ]
            җыештырылмаган[җ] := җыештырылмаган[җ - 1]
            җыештырылмаган[җ - 1] := вакытлы
яз җыештырылмаган

You can find it in Run ./ElanTele -t to see it in action.

ElanTele Syntax highlighting

You can use syntax file ElanTele.sublime-syntax written for Sublime Text 3 in order to use our language more comfortably.

Installation manual (Windows):

  1. Find User folder:

    • Go to Preferences > Browse Packages... . Browse User folder in opened window


    • Go to C:\Users\%USER%\AppData\Roaming\Sublime Text 3\Packages\User
  2. Move ElanTele.sublime-syntax file inside User folder

  3. After restarting Sublime go to View > Syntax > Elan Tele

You can’t perform that action at this time.