Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ekimb/pas
Rust syntax in Turkish
https://github.com/ekimb/pas
Last synced: 4 days ago
JSON representation
Rust syntax in Turkish
- Host: GitHub
- URL: https://github.com/ekimb/pas
- Owner: ekimb
- Created: 2021-09-19T17:07:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-19T17:10:17.000Z (about 3 years ago)
- Last Synced: 2024-08-01T19:58:27.062Z (3 months ago)
- Language: Rust
- Size: 29.3 KB
- Stars: 23
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pas
![](logo.png)
**pas** (Turkish for _Rust_) allows to
write Rust programs in Turkish, using Turkish keywords and function names, adapted from the original French implementation [Rouille](https://github.com/bnjbvr/rouille).Here's an example of Pas usage:
### trait and impl (aka nitelik and belirt)
```rust
pas::pas! {
dış kutu pas;
kullan std::collections::Harita gibi Harita;
nitelik AnahtarDeğer {
fonksiyon yaz(&kendi, anahtar: Dizgi, değer: Dizgi);
fonksiyon oku(&kendi, anahtar: Dizgi) -> Sonuç, Dizgi>;
}
statik değişken HARİTA: Belki> = Yok;
yapı Somut;
belirt AnahtarDeğer için Somut {
fonksiyon yaz(&kendi, anahtar: Dizgi, değer: Dizgi) {
olsun h = tehlikeli {
HARİTA.al_veya_bunu_ekle(Varsay::varsay)
};
h.ekle(anahtar, değer);
}
fonksiyon oku(&kendi, anahtar: Dizgi) -> Sonuç, Dizgi>; {
ise olsun Var(h) = tehlikeli {HARİTA.referans_olarak()} {
Tamam(h.oku(&anahtar))
} değilse {
Hata("Harita yok".şekline())
}
}
}
}
```### Other examples
See the [examples](./examples/src/main.rs) to get a rough sense of the whole
syntax.## Other languages
- French: [rouille](https://github.com/bnjbvr/rouille)
- Dutch: [roest](https://github.com/jeroenhd/roest)
- German: [rost](https://github.com/michidk/rost)
- Polish: [rdza](https://github.com/phaux/rdza)
- Italian: [ruggine](https://github.com/DamianX/ruggine)
- Russian: [ржавчина](https://github.com/FluxIndustries/rzhavchina)
- Esperanto: [rustteksto](https://github.com/dscottboggs/rustteksto)
- Hindi: [zung](https://github.com/rishit-khandelwal/zung)
- Hungarian: [rozsda](https://github.com/jozsefsallai/rozsda)
- Chinese: [xiu (锈)](https://github.com/lucifer1004/xiu)
- Spanish: [oxido](https://github.com/fdschonborn/oxido)
- Korean: [Nok (녹)](https://github.com/Alfex4936/nok)
- Finnish: [ruoste](https://github.com/vkoskiv/ruoste)
- Arabic: [sada](https://github.com/LAYGATOR/sada)## License
[WTFPL](http://www.wtfpl.net/).