diff --git a/README.md b/README.md index 99ff8ba..4f9373b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # rouille -Aren't you *le tired* from writing Rust programs in English? Do you like saying +Aren't you _le tired_ from writing Rust programs in English? Do you like saying "merde" a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some French touch to your programs? -**rouille** (French for *Rust*) is here to save your day, as it allows you to +**rouille** (French for _Rust_) is here to save your day, as it allows you to write Rust programs in French, using French keywords, French function names, French idioms. @@ -23,7 +23,7 @@ Here's an example of what can be achieved with Rouille: ```rust utilisons std::collections::Dictionnaire comme Dico; -interface CléValeur { +convention CléValeur { fonction écrire(&soi, clé: Chaine, valeur: Chaine); fonction lire(&soi, clé: Chaine) -> PeutÊtre<&Chaine>; } @@ -32,7 +32,7 @@ statique mutable DICTIONNAIRE: PeutÊtre> = Rien; structure Concrète; -implémentation CléValeur pour Concrète { +réalisation CléValeur pour Concrète { fonction écrire(&soi, clé: Chaine, valeur: Chaine) { soit dico = dangereux { DICTIONNAIRE.prendre_ou_insérer_avec(Défaut::défaut) @@ -53,7 +53,7 @@ syntax. Voilà, that's it. ## les contributions -First of all, *merci beaucoup* for considering participating to this joke, the +First of all, _merci beaucoup_ for considering participating to this joke, the French government will thank you later! Feel free to throw in a few identifiers here and there, and open a pull-request against the `principale` (French for `main`) branch. diff --git a/examples/src/main.rs b/examples/src/main.rs index 76aba7e..6fc3cac 100644 --- a/examples/src/main.rs +++ b/examples/src/main.rs @@ -3,7 +3,7 @@ rouille::rouille! { utilisons std::collections::Dictionnaire comme Dico; - interface CléValeur { + convention CléValeur { fonction écrire(&soi, clé: Chaine, valeur: Chaine); fonction lire(&soi, clé: Chaine) -> PeutÊtre<&Chaine>; } @@ -12,7 +12,7 @@ rouille::rouille! { structure Concrète; - implémentation CléValeur pour Concrète { + réalisation CléValeur pour Concrète { fonction écrire(&soi, clé: Chaine, valeur: Chaine) { soit dico = dangereux { DICTIONNAIRE.prendre_ou_insérer_avec(Défaut::défaut) diff --git a/rouille_proc_macro/src/lib.rs b/rouille_proc_macro/src/lib.rs index 97ee523..3974a65 100644 --- a/rouille_proc_macro/src/lib.rs +++ b/rouille_proc_macro/src/lib.rs @@ -36,9 +36,9 @@ fn replace_ident(ident: Ident) -> Option { "faux" => "false", "fonction" => "fn", "génial" => "super", - "implémentation" => "impl", + "réalisation" => "impl", "insérer" => "insert", - "interface" => "trait", + "convention" => "trait", "lire" => "get", "module" => "mod", "mutable" => "mut",