Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
Introduction to Programming Languages
Next article icon

Bhailang – A Toy Programming Language

Last Updated : 12 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Coding involves a wide array of programming languages. A beginner might find the syntax intimidating. What about if there was a Hindi linguistic version of coding? After all these programming languages such as C, C++, and Python, here we have Bhailang, created by our own Indian engineers spawned out of inside jokes. Bhailang is a toy language written in Typescript. The term ‘toy language’ refers to any computer programming language that does not meet the standards for general purpose applications. 

Key Terminologies

  • Entry & Exit point: A program must begin with a hi bhai and end with a bye bhai. 
  • Variables: Variables are declared with bhai ye hai.
  • Datatype: Numbers and strings are just like any other language. Null values are indicated with nalla. Sahi and Galat represent boolean values.
  • Output: Any console output can be printed with bol Bhai.
  • Conditionals: If the condition is Sahi (True), then the agar bhai (if) block will be executed, and if the condition is galat (false), then the warna bhai (else)  block will be executed.
  • Loops: Jab tak bhai blocks execute statements as long as a specified condition evaluates to sahi (true). Upon reaching galat, the statement within the loop stops executing, and control passes to the statement following the loop. 
  • Control Statements: Break the loop with bas kar bhai (break) and continue within it with agla dekh (continue) bhai.
  • Errors: It throws a syntax error with Kya kar rha hai tu statement. 

Steps to try Bhailang:

Step 1: Environment Setup 

  • Install Visual Studio code on your local machine. 
  • Make sure you have Node.js installed. Download it using the link below if you haven’t already. 

          Download Link: https://nodejs.org/en/

  • Install Bhailang globally by using the following command 

npm i -g bhailang

Installing-Bhailang

Installing bhailang

  • In Visual Studio code go to Extensions or press Ctrl + shift + x to open extensions. Search Bhailang – syntax highlight, autocomplete extension and install it. 

Installing Bhailang extension in Vs code 

Step 2: Create a file named gfg.bhai in a new project directory.

Bhailang files have the extension .bhai

We will start our program with hi bhai and end it with bye bhai. In this example, we will declare a few variables and explore the use of conditions and loops in Bhailang. 

Add the following code in gfg.bhai file.

// Entry point 

hi bhai

// bol bhai- prints the statements in console 

 bol bhai “Welcome to GeeksforGeeks!”;

 bol bhai “Let’s code in our Hindi Lingo using Bhailang”;

// Declaring the Variables 

  bhai ye hai a = 5;

  bhai ye hai b = 3;

// Sahi represents a boolean value True

  bhai ye hai c = sahi; 

  bhai ye hai d = galat;

// loop 

  jab tak bhai (b < 8) {

        bol bhai b;

       // if else construct

       agar bhai (b == a){

      bol bhai “b is equal to a”;

     bol bhai c; 

}

    warna bhai 

    bol bhai d ; 

    b += 1;

}

 // exit point 

bye bhai 

Step to run the program 

Run the program by using the following command.

bhailang <your file name > 

bhailang gfg.bhai 

Output

Output-Window

Bhailang Program Output 



Next Article
Introduction to Programming Languages
author
codesaurav
Improve
Article Tags :
  • Geeks Premier League
  • Programming Language
  • Geeks-Premier-League-2022

Similar Reads

  • How Programming Languages are Changing the World
    Programming has been revolutionizing the world since the advent of the first software or a code-based project. Programming or coding has opened numerous new ways and paved the way for innovation in almost every industry. Today, with various types of coding languages available and modern tech-powered
    6 min read
  • Lisp vs Erlang Programming Language
    Lisp is the High-Level Programming Language invented by John McCarthy in 1958 at the Massachusetts Institute of Technology (MIT). Lisp is the second-oldest high-level programming language in widespread use today. The name Lisp is derived from ‘List Processing Language’. Lisp programs deal with sourc
    2 min read
  • Ruby Programming Language
    Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. Ruby is a pure Object-Oriented language developed by Yukihiro Matsumoto. Everything in Ruby is an object except the blocks but there are replacements too for it i.e procs and lambda. The objective of Ruby’s develop
    2 min read
  • Introduction to Programming Languages
    Introduction: A programming language is a set of instructions and syntax used to create software programs. Some of the key features of programming languages include: Syntax: The specific rules and structure used to write code in a programming language.Data Types: The type of values that can be store
    13 min read
  • Which Programming Language to Choose?
    One of the most annoying question today is which programming language should be chosen for the sake of education/career or anything. Answer for this question to many programmers ends up with C or C++, or mostly Java but why C? why C++? Why Java?. Today many software exists, to solve a problem but al
    4 min read
  • Top 10 Programming Languages for Blockchain Development
    Do you ever wonder about the sudden emergence and popularity of Blockchain? What is it? Well, Blockchain is literally a chain of blocks as the name suggests! It’s just that the “blocks” in this context are digital information that is connected using cryptography. Each of these blocks contains a cryp
    7 min read
  • Top 10 Programming Languages to Learn in 2023
    Content has been removed from this post.
    1 min read
  • The Evolution of Programming Languages
    Programming Language is indeed the fundamental unit of today's tech world. It is considered as the set of commands and instructions that we give to the machines to perform a particular task. For example, if you give some set of instructions to add two numbers then the machine will do it for you and
    4 min read
  • Perl Programming Language
    Perl is a general purpose, high level interpreted and dynamic programming language. Perl supports both the procedural and Object-Oriented programming. Perl is a lot similar to C syntactically and is easy for the users who have knowledge of C, C++. Since Perl is a lot similar to other widely used lan
    3 min read
  • Introduction to Visual Programming Language
    Any language that uses the graphics or blocks that are already defined with the code and you just need to use those blocks without worrying about the lines of code is known as a visual programming language. In today's era majority of the programming languages are text-based i.e. we have to write the
    6 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences