Skip to content

Latest commit

 

History

History
85 lines (71 loc) · 3.06 KB

README.md

File metadata and controls

85 lines (71 loc) · 3.06 KB

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