Ek command, ek website
bash
asaan --web site.asaan -o site.html
Aur site.html browser me khul jati hai. Ye magic nahi — compiler hai.
Pipeline (4 stages)
site.asaan
│ lexer → tokens
│ parser → AST
│ codegen → HTML strings
▼
site.html
| Stage | Kaam | Example |
|---|---|---|
| Lexer | Code ko chhote tokens me todna | likho → KEYWORD |
| Parser | Tokens se structure banana | agar x > 5 to → IfNode |
| Codegen | AST se output banana | IfNode → <p>/text |
| Runtime | Variables, loops, functions | REPL me same |
Language ka core
likho "Salaam duniya"
naam = lo "Aapka naam? "
agar naam == "Muaaz" to
likho "Khush aamdeed, boss!"
warna
likho "Salaam, " + naam
bas
agar / warna / bas— decisionshar i se 1 tak 10 to— loopsjabtak— whilekaam jama(a, b) wapis a + b bas— functionskoshish / pakro— try/catch
Errors bhi Urdu me
Line 4: "warna" se pehle "to" chahiye tha
Beginner ke liye ye farq huge hai — error message seekhne wala hota hai, daraane wala nahi.
Kyun ye kaam karta hai
Pakistan me programming ki pehli rukawat English hoti hai, logic nahi.
Asaan Lang pehle soch sikhati hai — phir Python asaan lagti hai.
MIT license, sirf standard library, koi pip install nahi.



