bainganpp
v1.0.1
Published
A programming language that uses Hinglish keywords for learning programming concepts
Maintainers
Readme
baingan++ 🍆
A fun programming language that uses Hinglish (Hindi + English) keywords to make programming more accessible and enjoyable for Hindi speakers. by ANSH SHARMA after collaborating with copilot 🫠
Installation
Install globally using npm:
npm install -g bainganppQuick Start
Create a new project:
chalbe init my-project
cd my-project
chalbe main.bainganOr run a single file:
echo 'bol("Namaste World!")' > hello.baingan
chalbe hello.bainganLanguage Syntax
Keywords
| baingan++ | JavaScript | Description |
|-----------|------------|-------------|
| agar toh | if | Conditional statement |
| nahi toh | else | Else statement |
| nahi toh agar toh | else if | Else-if statement |
| jab tak | while | While loop |
| bol | console.log | Print to console |
Examples
Conditionals:
let age = 18
agar toh (age >= 18) {
bol('You can vote!')
} nahi toh {
bol('Too young to vote')
}Loops:
let count = 0
jab tak (count < 5) {
bol('Count: ' + count)
count = count + 1
}Complex Conditions:
let score = 85
agar toh (score >= 90) {
bol('Grade: A')
} nahi toh agar toh (score >= 80) {
bol('Grade: B')
} nahi toh {
bol('Grade: C')
}CLI Usage
Run a file
chalbe main.bainganCompile only (don't run)
chalbe main.baingan --compile-onlySave compiled output
chalbe main.baingan --output main.jsVerbose mode
chalbe main.baingan --verboseInitialize new project
chalbe init my-projectOnline Playground
Try baingan++ online at [playground link] - no installation required!
Contributing
We welcome contributions! Please see our contributing guidelines.
License
MIT License - see LICENSE for details.
Credits
Created with ❤️ for the Indian programming community.
