Skip to content

charyan/unirust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unirust

Aren't you tired from writing Rust programs in only one language? Do you like saying "panikuok", "lort" or "くだらない" a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some diversity to your programs?

Unirust is here to save your day, as it allows you to write Rust programs in any language, using keywords from any language, function names in any language, idioms in any language (Supported languages below).

This has been designed to be used as the official programming language to develop the future global social credit system.

Don't worry! Unirust is fully compatible with English-Rust, so you can mix both at your convenience.

Here's an example of what can be achieved with Unirust:

trait and impl

unirust::unirust! {
    外部 टोकरा unirust;

    استخدم std::collections::사전 zoals Dico;

    eigenschaft CléValeur {
        függvény écrire(&soi, clé: 문자열, valeur: Lanka);
        функція lire(&soi, clé: Zsinór) -> 結果<Möglichkeit<&Ĉeno>, Cxeno>;
    }

    statisk μεταβλητος DICTIONNAIRE: Opcja<Dico<Styga, Naskah>> = Geen;

    типок Concrète;

    kivitelezés CléValeur minden Concrète {
        funkcio écrire(&soi, clé: สตริง, valeur: Συμβολοσειρα) {
            द्या dico = 安全じゃない {
                DICTIONNAIRE.خذ_او_ادخل_ب(Predefinito::каквсегда)
            };
            dico.ekle(clé, valeur);
        }
        пацикисделают lire(&soi, clé: Catena) -> निकाल<Malnepra<&Retaz>, Низ> {
            nếu द्या มี(dico) = असुरक्षित { DICTIONNAIRE.sebagai_referensi() } {
                よし(dico.lire(&clé))
            } không_thì {
                실패("fetchez le dico".ke_dalam())
            }
        }
    }
}

Other examples

See the examples to get a rough sense of the whole syntax. That's it.

les contributions

First of all, merci beaucoup for considering participating to this joke, the World government will thank you later! Feel free to throw in a few identifiers here and there, and open a pull-request against the 1 branch (1 because math is universal).

but why would you use unirust

  • horsin around
  • playing with raw proc macros
  • allowing collaboration between multiple developpers speaking different languages on the same codebase

Supported languages

The license

WTFPL

About

Rust programming, in any language. Write rust like a true polyglot.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%