A fun programming language built on JavaScript. Created by Atikin Verse.
npm install babu-language###🧙♂️ Babu Language
A fun, beginner-friendly, desi-style programming language built on top of JavaScript. With syntax inspired by casual Hindi phrases, Babu Language makes programming more relatable and enjoyable. Created by Atikin Verse.
bol babu "Hello" | console.log("Hello") |
bol babu x + y | console.log(x + y) |
le babu x = 5 | let x = 5 |
const babu y = 10 | const y = 10 |
var babu z = 15 | var z = 15 |
agar babu (x > 3) | if (x > 3) { |
nahi to babu | } else { |
jab tak babu (x < 5) | while (x < 5) { |
kaam babu greet(name) | function greet(name) { |
wapis jao babu x y | return x y |
kaam khatam babu | } |
bula babu greet("Babu") | greet("Babu") |
sahi babu | true |
galat babu | false |
padho file "data.txt" | fs.readFileSync("data.txt", "utf-8") |
likho file "out.txt", "hello" | fs.writeFileSync("out.txt", "hello") |
galti ho sakti hai babu | try { |
pakdo babu (err) | } catch (err) { |
koi ghalti babu "message" | throw new Error("message") |
event babu click = bol babu "ok" | click = function() { console.log("ok") } |
bol babu) | Print messages or values to the console using console.log. |
le babu) | Declare variables using let, const, or var. |
agar babu) | Use if-else conditions for logical branching. |
jab tak babu) | Create while loops for repeated actions based on a condition. |
kaam babu) | Declare functions with or without arguments. |
wapis jao babu) | Return a value from a function. |
galti ho sakti hai babu) | Handle errors with try-catch blocks. |
sahi babu, galat babu) | Use true and false for boolean logic. |
padho file) | Read a file synchronously using Node.js fs.readFileSync. |
likho file) | Write data to a file synchronously using Node.js fs.writeFileSync. |
event babu) | Handle events (e.g., click) by defining functions for them. |
bula babu) | Call functions with or without parameters. |
git clone https://github.com/your-username/babu-language.git |
cd babu-language |
npm install (optional — if CLI features/extensions added) |
node index.js path/to/file.babu |
.babu file | Write your Babu code in a file named hello.babu. |
le babu name = "Babu",bol babu "Hello " + name |
node index.js hello.babu to transpile and execute the code. |
git checkout -b feature/my-feature |
git push origin feature/my-feature |