Bhidu Language

TypeScript ISC

BhaiLang is an experimental, interpreted programming language designed for fun, learning, and exploring compiler/interpreter concepts through a uniquely desi syntax.

Stars
17
Forks
0
Downloads
5,118
Open Issues
0
Files main

Repository Files

Loading file structure...
test.bhidu
chalu kar bhidu

// Variable declaration and assignments
bhidu ye hai naam = "Jackie Shroff";
bhidu ye hai age = 69;
bhidu ye hai isLegend = sahi bhidu;

bhidu bolta hai("Naam: " + naam);
bhidu bolta hai("Umar: " + age);
bhidu bolta hai("Legend hai kya? ");
bhidu bolta hai(isLegend);

// Calculations
bhidu ye hai a = 5;
bhidu ye hai b = 10;
bhidu bolta hai("a + b = " + (a + b));

// Loop and if-else
bhidu ye hai counter = 0;
jab tak bhidu (counter < 5) {
  counter = counter + 1;
  agar bhidu (counter % 2 == 0) {
    bhidu bolta hai("Even counter: " + counter);
  } warna bhidu {
    bhidu bolta hai("Odd counter: " + counter);
  }
}

khatam bhidu