Aren't you fatigat from writing Rust programs in English? Do you like saying "collons" a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some Catalan touch to your programs?
rovell (Catalan for Rust) is here to save your day, as it allows you to write Rust programs in Catalan, using Catalan keywords, Catalan function names, Catalan idioms.
This has been designed to be used as the official programming language to develop the future Catalan sovereign operating system.
You're from Barcelona and don't feel at ease using only Catalan words? Don't worry! Catalan Rust is fully compatible with English-Rust, so you can mix both at your convenience.
Here's an example of what can be achieved with Rovell:
rovell::rovell! {
funció principal() {
deixa mutable x = 31;
iguala x {
42 => {
collons!("mare de déu")
}
_ => escriulínia!("Com estàs!")
}
per i en 0..10 {
escriulínia!(i)
}
merda!("f")
}
}
See the examples to get a rough sense of the whole syntax.
More detailed examples here.
- If the French can do it, so can we
- If the Spanish can do it, so can we
Big thanks to Benjamin Bouvier for the original French implementation, Eliaz Bobadilla for the Spanish inspiration, and also Francesc for the Catalan review and wisdom.
Licensed under the MIT License.