Welcome to Hinglish โ the ultimate blend of Hindi and English, making programming fun, intuitive, and a little bit desi! Say goodbye to boring syntax and hello to a language that feels like home.

Add Hinglish magic to your project with this simple script tag:
<script src="https://pjdeveloper896.github.io/Hinglish-language/dist/hinglish.js"></script>That's it! No need for complicated setups. Your Hinglish code is ready to rock and roll.
Hereโs how Hinglish helps you code with style:
| Command | Description |
|---|---|
hinglish.likho(cheez) |
Print something out loud, or well, to the console |
hinglish.banao(naam, value) |
Declare a variable. No complex syntax, just banao! |
hinglish.badlo(naam, value) |
Update your variable and watch it transform. |
hinglish.lelo(naam) |
Grab the current value of any variable. |
hinglish.agar(shart, haanFn, nahiFn) |
If condition, but Hinglish style. |
hinglish.ghoom(start, end, step, fn) |
Loop it up, Hinglish-style! |
Use dom to make your webpage feel alive:
| Command | Description |
|---|---|
dom.addKaro(innerHTML, tag, id?) |
Add elements โ the Hinglish way! |
dom.likhoInner(selector, text) |
Change the inner content of an element. |
dom.setAttr(selector, attr, value) |
Set attributes like a boss. |
dom.getAttr(selector, attr) |
Retrieve an elementโs attribute. |
dom.hatao(selector) |
Remove the element like it was never there. |
Your web page needs some action, right? Well, events got you covered:
| Command | Description |
|---|---|
events.lagaEvent(selector, event, fn) |
Attach an event to a single element |
events.lagaSabko(selector, event, fn) |
Attach an event to all matching elements |
Hereโs a cool example that counts your clicks and prints the result in Hinglish:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hinglish Counter Example</title>
</head>
<body>
<button id="gintiBtn">Ginti Badhao</button>
<div id="gintiValue">Ginti: 0</div>
<script src="https://pjdeveloper896.github.io/Hinglish-language/dist/hinglish.js"></script>
<script>
hinglish.banao("ginti", 0);
events.lagaEvent("#gintiBtn", "click", () => {
const abhi = hinglish.lelo("ginti");
hinglish.badlo("ginti", abhi + 1);
dom.likhoInner("#gintiValue", "Ginti: " + hinglish.lelo("ginti"));
});
</script>
</body>
</html>- We declared a variable called
ginti(thatโs "count" in Hinglish). - When the button is clicked,
gintiis incremented, and the result is updated in thegintiValuediv. - It's simple, it's easy, and itโs very Hinglish.
- User-Friendly: Feel at home while coding, with a syntax thatโs a mix of Hindi and English.
- Quick Setup: Drop in the CDN and start coding, no extra configurations needed.
- Flexible & Powerful: Whether you're making a small project or a big app, Hinglish gives you full control without the unnecessary complexity.
Hinglish is always evolving, and you can be a part of its growth! Whether you're fixing bugs, adding new features, or creating localized commands, your contribution will make Hinglish even better. Fork the repo, make your magic happen, and send a PR!
Got questions, feedback, or an idea for a new command? Open an issue or just drop us a line.
Letโs code like never before, with Hinglish! ๐
---
Hinglish using cli
This is a simple CLI-based interpreter for the Hinglish Programming Language. You can run Hinglish code using a .hl file or interactively in the console โ without downloading the interpreter manually!
โ Works on Android, Linux, Termux, Windows (with Python installed)
- Python 3
requestsmodule
Install requests if not installed:
pip install requestsCreate a file named hinglish_cdn.py with the following code:
import sys
import requests
import subprocess
import os
# URL of the Hinglish interpreter hosted on GitHub Pages
script_url = 'https://pjdeveloper896.github.io/Hinglish-language/dist/Hinglish.py'
def download_script():
try:
response = requests.get(script_url)
response.raise_for_status()
return response.text
except requests.exceptions.RequestException as e:
print(f"Error downloading the script: {e}")
sys.exit(1)
def execute_script(script_content):
try:
temp_file = 'Hinglish.py'
with open(temp_file, 'w') as file:
file.write(script_content)
subprocess.run(['python', temp_file, '--console'], check=True)
os.remove(temp_file)
except subprocess.CalledProcessError as e:
print(f"Error executing the script: {e}")
sys.exit(1)
def main():
print("Downloading Hinglish Interpreter...")
script_content = download_script()
print("Running Hinglish Interpreter...")
execute_script(script_content)
if __name__ == '__main__':
main()python hinglish_cdn.pySave your Hinglish code in a file, for example example.hl:
ghoom 3
agar true
meraNaam
Then modify the Python script to pass your .hl file like this:
subprocess.run(['python', temp_file, '--file', 'example.hl'], check=True)Or run it manually after download:
python Hinglish.py --file example.hl# Conditional (agar)
agar true
# Output: Condition met!
agar false
# Output: Condition not met.
# Loop (ghoom)
ghoom 5
# Output: Loop iteration. (x5)
# Variable-like identifier
meraNaam
# Output: Variable: meraNaam
Hinglish Interpreter Python File
Created by @pjdeveloper896
