Skip to content
/ zangar Public
forked from bnjbvr/rouille

Rust programming, in Persian.

Notifications You must be signed in to change notification settings

ui-ce/zangar

 
 

Repository files navigation

Zangar

Zangar (Persian for Rust) allows you to write Rust programs in Persian, using Persian keywords and function names.

It is adapted from Rouille, the original French implementation of Rust.

Example

zangar::zangar! {
    خارجی جعبه زنگار ;

    تابع اصلی () {
        باشد x = 31 ;

        تطبیق x {        
            42 =>  {
                چاپ!("چهل و دو")                
                        }
            _ => چاپ!("راست به زبان فارسی")            
        }
    }
}
zangar::zangar! {
    khareji jabe zangar;

    tb asli() {
        bashad x = 31;

        tatbigh x {        
            42 =>  {
                chap!("چهل و دو")                
            }
            _ => chap!("راست به زبان فارسی")            
        }
    }
}

See the keywords and the examples to get a rough sense of the whole syntax.

Other languages

About

Rust programming, in Persian.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%