2. Installation — نصب کرنا
Difficulty: Beginner — مبتدی
Time: ~10 minutes
Option A — Standalone Executable (Recommended) — قابل عمل فائل (تجویز کردہ)
The easiest way. No Python installation required.
اردو: سب سے آسان طریقہ۔ Python نصب کرنے کی ضرورت نہیں۔
Steps — اقدامات:
- Go to the GitHub Releases page
- Download the latest
urdu-windows-vX.X.X.zip - Extract the ZIP — you get a folder called
urdu.dist - Inside is
urdu.exe
Verify it works — تصدیق کریں:
Expected output — متوقع آؤٹ پٹ:
Add to PATH (optional) — PATH میں شامل کریں (اختیاری):
# Run as Administrator — بطور منتظم چلائیں
$env:PATH += ";C:\path\to\urdu.dist"
[Environment]::SetEnvironmentVariable("PATH", $env:PATH, "Machine")
After this, type urdu from any folder instead of .\urdu.exe.
اردو: PATH میں شامل کرنے کے بعد کسی بھی فولڈر سے صرف
urduٹائپ کر سکتے ہیں۔
Option B — Python Source — Python سورس
For developers who want to contribute to the language or run from source.
اردو: ان ڈویلپرز کے لیے جو زبان میں حصہ ڈالنا چاہتے ہیں یا سورس سے چلانا چاہتے ہیں۔
Requirements — ضروریات: - Python 3.8 or later - Git
Steps — اقدامات:
git clone https://github.com/ZahidServers/urdu-programming-language
cd urdu-programming-language
pip install -e .
Verify — تصدیق:
Running Your First File — پہلی فائل چلانا
Create a file hello.urdu anywhere on your computer:
Run it — چلائیں:
# With the executable — قابل عمل فائل سے
urdu run hello.urdu
# Or with Python source — یا Python سورس سے
python -m urdu run hello.urdu
Output — آؤٹ پٹ:
CLI Commands — کمانڈ لائن حکام
| Command | Description |
|---|---|
urdu run file.urdu |
Run a .urdu file |
urdu repl |
Open the interactive REPL |
urdu نسخہ |
Show version |
urdu مدد |
Show help |
اردو:
urdu runکسی بھی.urduفائل چلاتا ہے۔urdu replانٹرایکٹو REPL کھولتا ہے جہاں آپ فوری کوڈ لکھ کر آؤٹ پٹ دیکھ سکتے ہیں۔
Interactive REPL — انٹرایکٹو REPL
The REPL (Read-Evaluate-Print Loop) lets you type code line-by-line and see results instantly.
اردو: REPL میں ایک ایک سطر لکھیں اور فوری نتیجہ دیکھیں۔ سیکھنے اور تجربہ کرنے کے لیے بہترین ٹول ہے۔ باہر نکلنے کے لیے
خروجلکھیں۔
Key Points — اہم نکات
- Option A (
.exe) is the easiest — no Python needed, just extract and run - Option B (Python source) requires
python -m urdu runprefix - File extension must be
.urdu - The REPL is great for quick experiments
اردو: آسان طریقہ:
.exeڈاؤن لوڈ کریں۔ فائل ایکسٹینشن.urduہونی چاہیے۔ REPL تجربہ کے لیے بہترین ہے۔