DEV Community

Cover image for Programming Language for Bhailog
Code With Arjun
Code With Arjun

Posted on

2 2

Programming Language for Bhailog

BhaiLang is a programming language made using syntax familier to Indian language.

For example to print something in bhai it is written

bol bhai "Hello World";
Enter fullscreen mode Exit fullscreen mode

bol bhai means say in hindi.

Here i will show how to set up bhailang on you machine and write first bhai lang program.

To install you need to have installed node and npm installed into your system. If you haven't please checkout this video.

Mac : https://youtu.be/pHz7TgEIa0w
Linux : https://youtu.be/P6rPI7x28nY
Windows : https://youtu.be/n3M9qKvFZeg

Once you install node and npm open your terminal and to install bhai lang just type :

npm i -g bhailang
Enter fullscreen mode Exit fullscreen mode

This should install bhailang on your system. You just need to type sudo npm i -g bhailang for Linux and Mac.

To check if bhailang is installed or not just type

bhailang --version
Enter fullscreen mode Exit fullscreen mode

To write your first program just open VS code or any Editer and simply create a file with .bhai extension

For example test.bhai

For first program just write :

hi bhai 
 bol bhai "Code With Arjun";
bye bhai
Enter fullscreen mode Exit fullscreen mode

To run the program just type


bhailang test.bhai 
Enter fullscreen mode Exit fullscreen mode

And the output will be :

Code With Arjun
Enter fullscreen mode Exit fullscreen mode

For more detail Please watch this video :

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more