From 163ab9f153000d7f49557aa03c85342a6f533808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Sun, 19 May 2024 13:49:19 -0400 Subject: [PATCH 1/3] fix missing `,` syntax error --- rustico/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rustico/src/lib.rs b/rustico/src/lib.rs index 2bcd942..3e25043 100644 --- a/rustico/src/lib.rs +++ b/rustico/src/lib.rs @@ -103,7 +103,7 @@ fn replace_ident(ident: Ident) -> Option { "usando" | "usar" => "use", "dentro_de" => "into", "enumerado" | "enumeración" => "enum", - "Rasgo" => "Trait" + "Rasgo" => "Trait", _ => &ident_str, }; From 89f20d2f37afcbece60af0815869b10858161c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Sun, 19 May 2024 13:58:34 -0400 Subject: [PATCH 2/3] `structura` -> `estructura` --- examples/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main.rs b/examples/src/main.rs index 392d38b..41b3d4f 100644 --- a/examples/src/main.rs +++ b/examples/src/main.rs @@ -9,7 +9,7 @@ rustico::rustico! { estático mutable DICCIONARIO: Opcion> = Ninguno; - structura Concreto; + estructura Concreto; implementa Hola para Concreto { funcion escribe(&yo, llave: Cadena, valor: Cadena) { From e0d70d1139faa6fcc713af3a0fe715b69ea93284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Fern=C3=A1ndez=20Serrata?= <76864299+Rudxain@users.noreply.github.com> Date: Sun, 19 May 2024 14:04:33 -0400 Subject: [PATCH 3/3] fmt lib.rs --- rustico/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rustico/src/lib.rs b/rustico/src/lib.rs index 3e25043..d13c4fb 100644 --- a/rustico/src/lib.rs +++ b/rustico/src/lib.rs @@ -29,20 +29,20 @@ fn replace_ident(ident: Ident) -> Option { "como_cad" => "to_str", "Hilo" => "Thread", "hilo" => "thread", - "crear" => "spawn", // debería ser "aparecer"? + "crear" => "spawn", // debería ser "aparecer"? "Diccionario" => "HashMap", // no hay traducción satisfactoria para "hash" "Conjunto" => "HashSet", "Defecto" => "Default", "defecto" => "default", "Errorsaso" => "Error", // errorsasasaso!!! "Opcion" | "Opción" => "Option", - "Alguno" => "Some", // Algo == !Nada + "Alguno" => "Some", // Algo == !Nada "Ninguno" => "None", // Nada = Nothing "Resultado" => "Result", "Yo" | "Mismo" => "Self", "yo" | "mismo" => "self", "imprimeln" => "println", // línea - "imprime" => "print", // no hay línea + "imprime" => "print", // no hay línea "rompe" | "romper" => "break", "proceso" => "process", "Comando" => "Command",