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.
hi bhai
is the entrypoint for the program and all program must end with bye bhai
. Anything outside of it will be ignored.bhai ye hai
.nalla
. sahi
and galat
are the boolean values.bol bhai
to print anything to console.agar bhai
block will execute if condition is sahi
, otherwise one of the subsequently added nahi to bhai
blocks will execute if their respective condition is sahi
, and the warna bhai
block will eventually execute if all of the above conditions are galat
.jab tak bhai
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 bas kar bhai
to break the loop and agla dekh bhai
to continue within loop.