Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajout de nouveaux identifiers très utiles pour faire un programme #68

Open
wants to merge 5 commits into
base: principale
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions rouille_proc_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,58 @@ rouille_compilogenese::rouille! {
"Ponctuation" => "Punct",
"Litéral" => "Literal",
"macro_procédurale" => "proc_macro",
"LectureBufferisée" => "BufRead",
"Lecture" => "Read",
"Écriture" => "Write",
"entrée_sortie" => "io",
"entrée" => "stdin",
"sortie" => "stdout",
"lire_ligne" => "read_line",
"écrire_ligne" => "write_line",
"écrire" => "write",
"est_vide" => "is_empty",
"est" => "is",
"verrouiller" => "lock",
"octets" => "bytes",
"chaîne" => "str",
"lire_exactement" => "read_exact",
"lire_jusqu'à" => "read_until",
MartinFillon marked this conversation as resolved.
Show resolved Hide resolved
"sépare" => "split",
"en_tant_que" => "as",
"Entier" => "Integer",
MartinFillon marked this conversation as resolved.
Show resolved Hide resolved
"ensuite" => "then",
"ensuite_valeur" => "then_some",
MartinFillon marked this conversation as resolved.
Show resolved Hide resolved
"déballer_ou" => "unwrap_or",
"déballer_ou_avec" => "unwrap_or_else",
"en" => "into",
MartinFillon marked this conversation as resolved.
Show resolved Hide resolved
"depuis_chaîne" => "from_str",
"Depuis" => "From",
"bien" => "ok",
"bien_ou" => "ok_or",
"bien_ou_avec" => "ok_or_else",
"en_tant_que_déréférencé" => "as_deref",
"en_tant_que_déréférencé_mutable" => "as_mut_deref",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mais.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je ne comprends pas votre commentaire. Pouvez vous précisez ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aucune référence à ce nom n'est trouvable dans la bibliothèque standard Rouille.

"itérable" => "iter",
"itérable_mut" => "iter_mut",
"énumérer" => "enumerate",
"filtre" => "filter",
"filtre_applique" => "filter_map",
"applique" => "map",
"applique_ou" => "map_or",
"applique_ou_avec" => "map_or_else",
"pour_chaque" => "for_each",
"essayer_pour_chaque" => "try_for_each",
"applatir" => "flatten",
"compter" => "count",
"trouve" => "find",
"trouve_en_appliquant" => "find_map",
"tous" => "all",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nous sommes en 2024, pensez printemps les ami·es.

Suggested change
"tous" => "all",
"tous·tes" => "all",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je propose plutot d'utiliser, tous ou toutes separement pusique cette notation est complexe a utiliser sur un ordinateur

"certains" => "any",
MartinFillon marked this conversation as resolved.
Show resolved Hide resolved
"récuperer" => "collect",
MartinFillon marked this conversation as resolved.
Show resolved Hide resolved
"copié" => "copied",
"cloné" => "cloned",
"Copiable" => "Copy",
"Clonable" => "Clone",
_ => &identifiant_chaîne,
};

Expand Down
Loading