Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
/ tot Public
forked from kant2002/tot

Rust programming, in Kazakh | Rust бағдарламалау, қазақ тілінде

License

Notifications You must be signed in to change notification settings

indicozy/tot

 
 

Repository files navigation

rouille

tot language

Why you cannot write Rust programs in your native language? Do you shy of it? Would you like to try something different, in an exotic and lovely sounding language? Would you want to bring some Kazakh hospitality to your programs?

тот (Kazakh for Rust) is here to save your day, as it allows you to write Rust programs in Kazakh, using Kazakh keywords, Kazakh function names, and Kazakh idioms.

I hope that this language will be selected to write all future government systems in Kazakhstan to reach digital sovereignty.

If you're aga from the Kazakhstan, find my email in the profile and reach for cooperation (wink, wink).

Here's an example of what would would be if programming languages was invented by Kazakh people. Right now in Тот:

trait and impl (aka convention et réalisation)

tot::тот! {
    сыртқы жәшік tot;

    пайдалану std::collections::ХэшМап ретінде Сөзд;

    қасиет КілттікМән {
        фн жазу(&өзім, кілт: Жол, құндылық: Жол);
        фн алу(&өзім, кілт: Жол) -> Нәтиже<Опция<&Жол>, Жол>;
    }

    статик өзг СӨЗДІК: Опция<Сөзд<Жол, Жол>> = Жоқ;

    құрыл Concrète;

    асыру КілттікМән үшін Concrète {
        фн жазу(&өзім, кілт: Жол, құндылық: Жол) {
            беру сөзд = қауіпсіземес {
                СӨЗДІК.алу_немесе_енгізу(Әдепкі::әдепкі)
            };
            сөзд.кірістіру(кілт, құндылық);
        }
        фн алу(&өзім, кілт: Жол) -> Нәтиже<Опция<&Жол>, Жол> {
            егер беру Кейбір(сөзд) = қауіпсіземес { СӨЗДІК.сіл_ретінде() } {
                Жарайды(сөзд.алу(&кілт))
            } басқа {
                Қт("сөздікті алып келу".ішіне())
            }
        }
    }
}

Other examples

See the examples to get a sense of the whole syntax.

Contributions

First of all, рахмет for considering participating to this joke, you will have opportunity sell this to Kazakh government later! Feel free to throw in a few identifiers here and there, and open a pull-request against the негізгі (Kazakh for main) branch.

Be civil, don't use swear words. We should show hospitality to the visitors of this repo.

Other languages

un grand merci

la license

License Publique Rien à Branler, le official translation of the WTFPL by the same author.

About

Rust programming, in Kazakh | Rust бағдарламалау, қазақ тілінде

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%