Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ tukku Public
forked from bnjbvr/rouille

Rust programming, in ಕನ್ನಡ.

License

Notifications You must be signed in to change notification settings

sanathNU/tukku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tukku (ತುಕ್ಕು)

Aren't you tired (ಸುಸ್ತಾಗಿದ್ದೀರಾ?) of writing Rust programs in just English? Feel like you've had enough of the usual syntax and want something with a little more... local south-indian flavor (ನಮ್ಮೂರ ಸೊಗಡು)? Want to try something different, perhaps in a language that's both exotic and feels like home (ನಮ್ಮ ಭಾಷೆಯಲ್ಲಿ!)?

Then Tukku (ತುಕ್ಕು), which is the Kannada word for Rust (ತುಕ್ಕು), is here to save your day! It lets you write Rust programs using ಕನ್ನಡ – that means using ಕನ್ನಡ keywords, and perhaps adopting some Kannada-style function names or idioms (ಕನ್ನಡದ ವಿಶಿಷ್ಟ ಶೈಲಿ!).

Don't worry! ತುಕ್ಕು, the Kannada Rust, is fully compatible with standard English-Rust. So you can easily mix and match (ಬೆರೆಸಿ ಬಳಸಬಹುದು) both in your projects, using the power of Rust with the beauty of Kannada.

Available Kannada Keywords

Here are some of the Kannada keywords you can use in your Rust code:

  • ಸಾರ್ವಜನಿಕpub (public)
  • ಕಾರ್ಯfn (function)
  • ಮಾಡುlet (let)
  • ಯದಿif (if)
  • ಅಥವಾelse (else)
  • ರಚನೆstruct (struct)
  • ವರ್ಗenum (enum)
  • ಬದಲುmut (mutable)
  • ಮುದ್ರಿಸುprintln! (print)
  • ಯಾವಾಗwhile (while)
  • ಮುಖ್ಯmain (main)

Example Usage

kannada! {
    ಸಾರ್ವಜನಿಕ ಕಾರ್ಯ ಮುಖ್ಯ() {
        ಮಾಡು ಬದಲು x = 5;
        ಯಾವಾಗ x > 0 {
            ಮುದ್ರಿಸು!("ಧನಾತ್ಮಕ");
            x = x - 1;
        }
    }
}

Other examples

See the examples to get a rough sense of the whole syntax. ಅಷ್ಟೇ, that's it.

If you want to show some simple examples run cargo run --example main

Contributions (ಕೊಡುಗೆಗಳು)

First of all ಧನ್ಯವಾದಗಳು, for considering participating in this... ಸಂತೋಷಕರ project!

Feel free to throw in a few Kannada ಗುರುತುಗಳು or sprinkle some Kannada ಸೊಗಡು here and there in the code. Once you have something, open a pull-request against the ಮುಖ್ಯ branch (that's the main branch).

Please don't introduce swear words, though. ನಮ್ಮ 'ತುಕ್ಕು' ಕೋಡಿನಲ್ಲಿ ಅಂತಹ ಶಬ್ದಗಳು ಒಂಥರಾ ವಿಚಿತ್ರವಾಗಿ ಕೇಳಿಸುತ್ತವೆ! (Such words sound somewhat weird in our 'Tukku' code!)

but ಯಾಕೆ?

  • ಸುಮ್ನೆ timepass
  • playing with raw proc macros

Other languages

Here are some other language flavors of Rust you can enjoy!

License (ಅನುಮತಿ)

WTFPL

Image Disclaimer

The image (rust_pic.jpeg) included in this repository was generated by a diffusion model (Google Gemini) and is provided for representation purposes only. Use of this image in other projects, especially for commercial purposes, is not permitted.

The rest of the code in this repository is open source and may be used in accordance with the WTFPL license. This restriction applies only to the AI-generated image.

About

Rust programming, in ಕನ್ನಡ.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%