Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ismoilovdevml/osmon-lang

Osmon lang dasturlash tilida calculator
https://github.com/ismoilovdevml/osmon-lang

calculator osmon-lang programming-language xinux

Last synced: 23 days ago
JSON representation

Osmon lang dasturlash tilida calculator

Awesome Lists containing this project

README

        

Osmon

Programming Language | Dasturlash Tili

O'zbek boshlang'ichlari uchun o'rgatuvchi til | Language made for uzbek learners

Website | Wiki

Xissasini qo'shayotganlar:

UwUssimo (birinchi muallif) | Mukhammadyusuf (osmon-react) | Fromgodd (hozirgi muallif) | Genemator (osmon-script)


Osmon langni o'rnatish

Windows/Powershell uchun

```bash
iwr https://sh.osmon.dev/install.ps1 -useb | iex
```

*NIX/Bash uchun

```bash
curl -fsSL https://sh.osmon.dev/install.sh | sh
```

Osmon Lang VSCode Kengaytmasi

[Osmon Lang VSCode Kengaytmasini o'rnatish](https://marketplace.visualstudio.com/items?itemName=osmon.osmon)

## Maqsad
* **O'zbekona sintaksis**
* **Rust bilan integratsiya**
* **O'rganish darajasini oshirish**
* **Virtual Mashinani OOP ga moslash**

## Holis (istamaymiz)
* Judayam haddan ortiq ko'p resurslar ko'paytirish
* JIT kompilyatsiya
* Baytkod fayllarni yaratish

# Misol

```
funksiya faktorial(n) {
agar n == 0 {
qaytar 1;
}
qaytar faktorial(n - 1) * n;
}

klass Faktorial {
funksiya yarat(v) {
shu._v = v;
qaytar shu;
}

funksiya qiymat() {
agar shu._v == 0 {
qaytar 1;
}

joy f = Faktorial(shu._v - 1);
joy v = shu._v;

qaytar f.qiymat() * v;
}
}

funksiya asosiy() {
yoz("Klasslik faktorial(5) = ",Faktorial(5).qiymat());
yoz("Rekursiv faktorial(5) = ",faktorial(5));
}
```

Programming Language | Dasturlash Tili


Xinux Jamiyati tomonidan yaratilgan Dasturlash tili [osmon-lang].