Skip to content
/ polar Public

Polar programming language πŸ»β€β„οΈ

License

Notifications You must be signed in to change notification settings

Slavlned/polar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Polar programming language

Dynamicly typed simple scripting programming language πŸ’‘

Compiles to IceVM πŸ₯Ά

Important

Compiler & Vm still under dev. It doesn't support the old libs (from interpreter)

Note

Requires kotlin 5.0 & jdk 21

Example code:

use 'lib.random'

rnd_value = Random.number(1, 100, true)

while (1 == 1) {
    put('Guess the number between 1 and 100 πŸ›Έ !')
    input = scan('Enter number...')
    if (number(input) == rnd_value) {
        put('Guessed! πŸ’‘')
    } else {
        put('Wrong number! The answer was... ' + string(rnd_value) + '! 🚨')
    }
    rnd_value = Random.number(1, 100, true)
}

Tip

Read documentation for more examples

Warning

Documentation is work in progress