Intro
Some of you might have heard of Bhai Lang or some might not. This is a post I wrote with a lot of interest and proud of being Indian and Proud of the future of the Indians.
Wait, What is Bhai Lang??
Bhai Lang is a language developed by two i dians known as Aniket Singh from Amazon and Rishabh Tripathi from Groww. This Language means another version of JavaScript. It is a fun language.
How is it made?
Bhai Lang is made in Typescript. It is an idea of them when they were studying and thought about it but that time, It was just fun.
What is this weird word called "bhai"?
It is not a weird word. "Bhai" means brother in Hindi, Which is the native language of India.
Learn About Bhai Lang
Bhai Lang has an official page of Bhai Lang itself and it has a playground in which you can code without installing it's NPM language.
How do I run it in my device?
You can either run it in your browser or install the NPM package of Bhai Lang by running npm i -g bhailang
.
How do I create a file?
To create a file in Bhai Lang, you must add the extension '.bhai' at the end of the file name.
How to Run?
To run, Type bhailang _filename.bhai_
.
Full Documentation
For full documentation visit their GitHub page
Bhai Lang
This is official repository for bhai-lang.
Bhai lang is a toy programming language written in Typescript.
Installation
npm i -g bhailang
Usage
Create a new file (test.bhai
)
Edit the file with a text editor You can also try out your code on Bhai Lang PlayGround
hi bhai
bol bhai "Hello bhai"
bye bhai
Run
bhailang test.bhai
Output
hello bhai
Documentation
General
hi bhai
is the entrypoint for the program and all program must end with bye bhai
. Anything outside of it will be ignored.
This will be ignored
hi bhai
// Write code here
bye bhai
This too
Variables
Variables can be declared using bhai ye hai
.
hi bhai
bhai ye hai a = 10;
bhai ye hai b = "two";
bhai ye hai c = 15;
a = a + 1;
b = 21;
c *= 2;
bye bhai
Types
Numbers and strings…
Or you can visit their official website
My Opinion (which you don't have to care)
I am super exited to see Indians develop a language like this. I am always waiting for the developed future. I like this language for its creative idea but on the other side It should have more commands like for more developed lines. It is just the beginning, there is a lot & I am waiting for it.
Signing off,
Gautham G Nair
Top comments (1)
If you have more info about it then put it in the comments. It helps me a lot!