DulLabs / bhai-lang

A toy programming language written in Typescript
https://bhailang.js.org/
MIT License
3.97k stars 501 forks source link

Feature Request: Array aur bhai custom functions #267

Open raj-jaiswal opened 2 years ago

raj-jaiswal commented 2 years ago

Is your feature request related to a problem? Please describe.

Just add an array and a few more basic operations and it will be a basic usable language.

Describe the solution you'd like.

For Array- Bhai ye h -name- = lamba list (element1,element2);

For defining function- Bhai -parameters- de tab -name- karenge { //Kam kar yaar }

For calling a function- -Parameters- le aur -name- kar

For function without parameters- -Name- kar

If plausible

Describe alternatives you've considered

No response

Additional context.

No response

meet-aniket commented 2 years ago

Hi @raj-jaiswal, can I pick this one for adding improvements?

tbhaxor commented 2 years ago

Functions are already implemented in the #220 pull request and is under review

aadi-stripe commented 1 year ago

Adding arrays here https://github.com/DulLabs/bhai-lang/pull/275