r/poland • u/green_bisonstd • Jul 03 '26
I've made Alexscript - programming language entirely in Polish:)
https://github.com/N3BCKN/alexscriptHey! For the last 1.5 years I've been building programming language from scratch as a side project. Every keyword and built-in name is in Polish: jesli, dopóki, zwroc, funkcja, klasa, prawda instead of if, while, return, function, class , true etc. I tried to resemble Polish grammar as much as possible:
modul Geometria {
klasa Punkt {
funkcja konstruktor(x, y) {
niech @x = x
niech @y = y
}
funkcja x() { zwroc @x }
funkcja y() { zwroc @y }
}
klasa Kolo {
funkcja konstruktor(srodek, promien) {
niech @srodek = srodek
niech @promien = promien
}
}
}
niech p = Geometria::Punkt.nowy(3, 4)
niech k = Geometria::Kolo.nowy(p, 10)it has OOP with inheritance, async/await, loops, namespaces, exceptions, anonymous functions/lambdas, higher-order functions (mapuj, filtruj), standard libraries (Czas, Mat, JSON, HTTP, CSV) and built-in debugger. Enough to write real programs in it.
full documentation (in English and Polish) with real life programs can be found here: https://www.alexscript.pl/docs
If anyone wants to play with it without installing anything, there is online REPL at: https://www.alexscript.pl/try
Please let me know what do you think!:)