Metadata-Version: 2.4
Name: gandu-lang
Version: 1.0.0
Summary: 🐒 The Most Powerful Desi Programming Language — Code likh, duniya hila!
Home-page: https://github.com/tijilkumar/gandu-lang
Author: Tijil Kumar
Author-email: Tijil Kumar <kumartijil11@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/tijilkumar/gandu-lang
Project-URL: Documentation, https://github.com/tijilkumar/gandu-lang#readme
Project-URL: Repository, https://github.com/tijilkumar/gandu-lang
Project-URL: Issues, https://github.com/tijilkumar/gandu-lang/issues
Keywords: programming-language,desi,hindi,interpreter,esolang,gandu
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Topic :: Software Development :: Interpreters
Classifier: Topic :: Software Development :: Compilers
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: telegram
Requires-Dist: python-telegram-bot>=20.0; extra == "telegram"
Provides-Extra: http
Requires-Dist: requests>=2.28.0; extra == "http"
Provides-Extra: all
Requires-Dist: python-telegram-bot>=20.0; extra == "all"
Requires-Dist: requests>=2.28.0; extra == "all"
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python

# 🐒 Gandu Language

### *Code likh, duniya hila!*

**The Most Powerful Desi Programming Language** — Built for true Indian Techies who code with swag.

Gandu is a full-featured programming language with Hindi slang syntax that compiles through a proper Lexer → Parser → AST → Interpreter pipeline. It supports everything Python does — variables, loops, functions, classes, error handling, file I/O, API calls, Telegram bots, and more!

---

## 🚀 Quick Install

```bash
pip install gandu-lang
```

With all extras (Telegram + HTTP):
```bash
pip install gandu-lang[all]
```

## 💻 Run Your Code

```bash
gandu hello.gandu
```

Interactive REPL:
```bash
gandu
```

---

## 📝 Hello World

```
Jai Shree Ram

shuru kar {
    bol("Namaste Duniya! 🐒")
}

Jai Hind
```

## 🗺️ Language Reference

### Program Structure
Every `.gandu` file must:
1. Start with `Jai Shree Ram`
2. Have a main block: `shuru kar { ... }`
3. End with `Jai Hind`

### Variables
```
bhai x = 10              ## mutable variable
pakka PI = 3.14          ## constant (cannot change)
bhai name = "Tijil"      ## string
bhai flag = sach         ## boolean (sach/jhooth)
bhai empty = kuch_nahi   ## None
```

### I/O
```
bol("Hello!")                        ## print
bhai naam = sun("Naam daal: ")       ## input
chilla("HELP!")                      ## print uppercase
```

### If-Else
```
agar (x > 10) {
    bol("Bada hai")
}
nahi toh (x == 10) {
    bol("Barabar hai")
}
warna {
    bol("Chhota hai")
}
```

### Loops
```
## While loop
jab tak (x < 10) {
    bol(x)
    x += 1
}

## For loop
har ek (i andar range(10)) {
    bol(i)
}

## Break & Continue
tod_de       ## break
aage_badh    ## continue
```

### Functions
```
kaam jod(a, b) {
    de_de a + b
}

bhai result = jod(5, 3)
bol(result)  ## 8
```

### Classes (OOP)
```
gang Aadmi {
    naya(naam, umar) {
        apna.naam = naam
        apna.umar = umar
    }

    kaam hello(apna) {
        bol(f"Main hoon {apna.naam}, umar {apna.umar}")
    }
}

bhai raju = Aadmi("Raju", 25)
raju.hello()
```

### Arrays & Dictionaries
```
bhai nums = [1, 2, 3, 4, 5]
daal(nums, 6)
bol(naap(nums))   ## 6

bhai info = {"naam": "Raju", "umar": 25}
bol(info["naam"])
```

### Error Handling
```
try_kar {
    bhai x = 10 / 0
}
pakda (e) {
    bol(f"Error aaya: {e}")
}
chahe_jo_ho {
    bol("Yeh hamesha chalega!")
}
```

### Imports
```
la os                        ## import Python module
manga json se loads          ## from json import loads
jugaad telegram              ## import gandu stdlib
jugaad http                  ## import gandu HTTP library
```

### Built-in Functions
| Function | Description |
|---|---|
| `bol(...)` | Print output |
| `sun(...)` | Take input |
| `naap(x)` | Length |
| `type_bata(x)` | Check type |
| `number(x)` | Convert to int |
| `dashamlav(x)` | Convert to float |
| `shabd(x)` | Convert to string |
| `raand(a, b)` | Random number |
| `rukja(n)` | Sleep n seconds |
| `range(n)` | Range |
| `sorted(list)` | Sort |
| `ulta(list)` | Reverse |

### Standard Library
- **`jugaad telegram`** — Telegram bots
- **`jugaad http`** — API calls (GET, POST, PUT, DELETE)
- **`jugaad file`** — File read/write
- **`jugaad json`** — JSON parse/generate
- **`jugaad math`** — Math operations

---

## 👨‍💻 Author

**Tijil Kumar** — kumartijil11@gmail.com

## 📄 License

MIT License — Use it however you want!

---

*Invented with 😤 and ❤️ by Tijil Kumar*
