Skip to content

ekimb/pas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pas

pas (Turkish for Rust) allows to write Rust programs in Turkish, using Turkish keywords and function names, adapted from the original French implementation Rouille.

Here's an example of Pas usage:

trait and impl (aka nitelik and belirt)

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ç<Belki<&Dizgi>, Dizgi>;
    }
    statik değişken HARİTA: Belki<Harita<Dizgi, Dizgi>> = 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ç<Belki<&Dizgi>, 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 to get a rough sense of the whole syntax.

Other languages

License

WTFPL.

About

Rust syntax in Turkish

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages