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

Feature Request: Functions, passing variables, reference variables, inputs and constants #241

Open
anuj10x opened this issue Mar 21, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@anuj10x
Copy link

anuj10x commented Mar 21, 2022

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

We can declare and call functions, pass variables and reference variables, take input from console, support constants

declare function: bhai apun ka naam TaklaFighter(supariAmount, &kitnaTimeLagega)
& for passing reference variables
bula for calling functions
Input variables have a ? in front of them and can be used to take input from console.
Keyword mangta for taking input

bhai yeh hai kitniSupari?
bhai kitniSupari mangta

bole to for constants

Describe the solution you'd like.

Example:

HaoNaBhai bole to sahi 
NahiNaBhai bole to galat
PooraHafta bole to 100000

bhai apun ka naam MunnaCircuit(&haftaMilaKya, vasooli)
{
   haftaMilaKya = NahiNaBhai;
   agar bhai (vasooli == PooraHafta) {
       haftaMilaKya = HaoNaBhai;
   }
}

Calling function from main:

hi bhai
  bhai yeh hai haftaMilaKya?
  bhai yeh hai vasooli?
  bol bhai "kitni vasooli hui?"
  bhai vasooli mangta
  bhai bula MunnaCircuit(haftaMilaKya, vasooli)
  agar bhai (haftaMilaKya) {
    bol bhai "Jhakkaaas!!"
  }
  warna {
    bol bhai "Khallaaas!!"
  }
bye bhai

Describe alternatives you've considered

No response

Additional context.

No response

@anuj10x anuj10x added the enhancement New feature or request label Mar 21, 2022
@anuj10x anuj10x changed the title Feature Request: Functions, passing reference variables, and aliases Feature Request: Functions, passing variables, reference variables, inputs and constants Mar 22, 2022
@tbhaxor
Copy link

tbhaxor commented Mar 27, 2022

Duplicate of #154 and implemented in #220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants