BhaiLang
A toy programming language written in Typescript
npm i -g bhailang
Made by @aniketsingh0104 and @ristri
A toy programming language written in Typescript
npm i -g bhailang
Bhailang is dynamically typed toy programming language, based on an inside joke, written in Typescript.
ро╡рогроХрпНроХроорпН роирогрпНрокро╛
is the entrypoint for the program and all program must end with роиройрпНро▒ро┐ роирогрпНрокро╛
. Anything outside of it will be ignored.роЗродро╛ройрпН роирогрпНрокро╛
.роТройрпНройрпБроорпЗропро┐ро▓рпНро▓рпИ роирогрпНрокро╛
. sahi
and galat
are the boolean values.роЪрпКро▓рпНро▓рпБ роирогрпНрокро╛
to print anything to console.роЗрокрпНрокроЯро┐ройрпНройро╛ роирогрпНрокро╛
block will execute if condition is sahi
, otherwise one of the subsequently added роЗро▓рпНро▓ роТро░рпБро╡рпЗро│рпИ
blocks will execute if their respective condition is sahi
, and the роЕрокрпНрокроЯро┐ роЗро▓рпНро▓рпЗройрпНройро╛
block will eventually execute if all of the above conditions are galat
.роЗродрпБро╡ро░рпИроХрпНроХрпБроорпН роЪрпБродрпНродрпБ роирогрпНрокро╛
blocks are executed as long as a specified condition evaluates to sahi
. If the condition becomes galat
, statement within the loop stops executing and control passes to the statement following the loop. Use рокрпЛродрпБроорпН роирогрпНрокро╛
to break the loop and роЕроЯрпБродрпНродродрпБ роирогрпНрокро╛
to continue within loop.