Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the functions #154

Closed
1 task done
tbhaxor opened this issue Mar 15, 2022 · 3 comments
Closed
1 task done

Add support for the functions #154

tbhaxor opened this issue Mar 15, 2022 · 3 comments
Assignees

Comments

@tbhaxor
Copy link

tbhaxor commented Mar 15, 2022

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: #94 (comment)

Domain

Bhai Lang

Type of Contribution

Addition, Enhancement

Code of Conduct

@tbhaxor
Copy link
Author

tbhaxor commented Mar 15, 2022

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.

@bhushanvaidya
Copy link

the return statment should be "ye le bhai"

@thecodacus
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants