‘Bhai Lang’ – A Programming Language Created By Two Indians

In today’s blog we are going to talk about a programming language that has been created by two Indians, this language is written in Hinglish, this language has been created for India, if you want to know about this language and those two Indians who have created this language, then you must read this blog till the end, you will get all the information related to it in this blog.

‘Bhai Lang’ – A Programming Language Created By Two Indians

What is ‘Bhai Lang’?

Bhailang is dynamically typed toy programming language, based on an inside joke, written in Typescript. “Bhai-Lang” is a new programming language created by two Indian programmers, Groww’s Rishabh Tripathi and Amazon’s Aniket Singh. The programming language’s code starts with “hello bhai” and finishes with “bye bhai.” This toy programming language has entertained netizens.

Brief Information About ‘Bhai Lang’

A new programming language is known asBhai-Lang has gone viral on social media. It’s a children’s programming language. “Bhai-Lang” was established by two Indian developers, Groww’s Rishabh Tripathi and Amazon’s Aniket Singh. Typescript is the programming language used.

Understand ‘Bhai Lang’

Brother is referred to as “Bhai” in Hindi. The Hindi term “bhai” is used with English words like “hello” and “bye” in the programming language. “Bhai-Lang” contains syntax, just as other computer languages. According to the language’s official website, all codes placed inside these tags will be legitimate, while anything outside of them will be rejected. The code starts out with “hello bhai” and finishes with “bye bhai.” If there is a problem, the message “Arre Bhai Bhai Bhai!!!” will show.

Programmers must use the phrase “bhai ye hai” to declare the variable. As needed, different values and functions will be assigned to these variables. On the “Bhai-Lang” GitHub website, users can learn how to use built-ins, conditionals, and loops. bhailang.js.org is the official website for the programming language.

Syntax Or Program of ‘Bhai Lang’

General

This will be ignored

hi bhai
  // Write code here
bye bhai

This too
    

Variables

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 of Variables

hi bhai
    bhai ye hai a = 10;
    bhai ye hai b = 10 + (15*20);
    bhai ye hai c = "two";
    bhai ye hai d = 'ok';
    bhai ye hai e = nalla;
    bhai ye hai f = sahi;
    bhai ye hai g = galat;
bye bhai
    

Print On Console | Built-ins

hi bhai
    bol bhai "Hello World";
    bhai ye hai a = 10;
    {
       bhai ye hai b = 20;
       bol bhai a + b;
    }
    bol bhai 5, 'ok', nalla , sahi , galat;
bye bhai
    

Conditionals

hi bhai
    bhai ye hai a = 10;
    agar bhai (a < 20) {
      bol bhai "a is less than 20";
    } nahi to bhai ( a < 25 ) {
      bol bhai "a is less than 25";
    } warna bhai {
      bol bhai "a is greater than or equal to 25";
    }
bye bhai
    

Loops

hi bhai
    bhai ye hai a = 0;
    jab tak bhai (a < 10) {
      a += 1;
      agar bhai (a == 5) {
        bol bhai "andar se bol bhai ", a;
        agla dekh bhai;
      }
      agar bhai (a == 6) {
        bas kar bhai;
      }
      bol bhai a;
    }
    bol bhai "done";
bye bhai
    

Error

❌ Arre Bhai Bhai Bhai !!!
> kya kar rha hai tu??...Unexpected token: "bye bhai", expected : "IDENTIFIER"

Also Read:

  • Top Programming Language In 2022 – Click Here
  • Best 5 Must Read Books For Software Engineer – Click Here

Leave a Comment