bhai-lang icon indicating copy to clipboard operation
bhai-lang copied to clipboard

Add support for the functions

Open tbhaxor opened this issue 3 years ago • 3 comments

Description

Support bhai bula {name} aur bhej {list of params} the return statement can bhai wapis kar {return}

What it would look like

hi bhai
    bhai bula greet aur bhej name, age {
        bhai wapis kar name + age;
    }
bye bhai

Motivation: https://github.com/DulLabs/bhai-lang/issues/94#issuecomment-1066802303

Domain

Bhai Lang

Type of Contribution

Addition, Enhancement

Code of Conduct

tbhaxor avatar Mar 15 '22 04:03 tbhaxor

I always wanted to learn how languages work and this seems like a good start. Can I work on this?. It will take some time to understand and then implement.

tbhaxor avatar Mar 15 '22 04:03 tbhaxor

the return statment should be "ye le bhai"

bhushanvaidya avatar Mar 18 '22 12:03 bhushanvaidya

added a PR for this, you guys can check it in preview build https://6234ac37ec8e100008f579b5--bhailang-preview.netlify.app/#playground

thecodacus avatar Mar 18 '22 16:03 thecodacus