Playground

Meet Hüma,
Explore in your Browser.

Experience the power and simplicity of Hüma through our ready-to-use examples. See how the code works without any installation required.

Module: hello

Hello World

Variable definition and basic output operations.

terminalConsole Output
Merhaba, Dünya
hello.hb
1// Değişken tanımla ve yazdır
2isim = "Dünya" olsun
3"Merhaba, " + isim'i yazdır;
Module: conditions

Conditional Logic

Decision structures (ise-yoksa) and comparisons.

terminalConsole Output
Sınavı başarıyla geçtiniz!
conditions.hb
1puan = 85 olsun
2
3puan > 50 ise {
4 "Sınavı başarıyla geçtiniz!"'i yazdır;
5} yoksa {
6 "Maaleset kaldınız."yazdır;
7}
Module: loops

Loops

Repeating operations (olduğu sürece) and counters.

terminalConsole Output
Adım: 1
Adım: 2
Adım: 3
loops.hb
1sayaç = 1 olsun
2
3sayaç <= 3 olduğu sürece {
4 "Adım: " + sayaç'ı yazdır;
5 sayaç = sayaç + 1 olsun
6}
Module: functions

Functions

Modular structures that can take parameters and return values.

terminalConsole Output
Toplam: 35
functions.hb
1topla fonksiyon olsun a, b alsın {
2 a + b'yi döndür
3}
4
5sonuç = topla(15, 20)
6"Toplam: " + sonuç'u yazdır;
Module: classes

Classes (OOP)

Object-oriented programming and class methods.

terminalConsole Output
Kedi diyor ki: Miyav
classes.hb
1hayvan sınıf olsun {
2 isim = "" olsun
3 ses = "Miyav" olsun
4
5 konuş fonksiyon olsun {
6 kendisi'nin isim'i + " diyor ki: " + kendisi'nin ses'i yazdır
7 }
8}
9
10pisi = hayvan() olsun
11pisi.isim = "Kedi" olsun
12pisi.konuş()
Module: lists

List Operations

Dynamic lists and element management.

terminalConsole Output
Eleman sayısı: 4
Tüm liste: [1, 2, 3, 4]
lists.hb
1liste = [1, 2, 3] olsun
2liste'ye [4]'ü ekle;
3
4"Eleman sayısı: " + liste'nin uzunluğu'nu yazdır;
5"Tüm liste: " + liste'yi yazdır;

Try More

Follow the documentation to start high-performance Hüma development on your local machine.