๐ณ๐ต Sathi: The Nepali-Inspired Programming Language
"Sathi" (เคธเคพเคฅเฅ) โ Meaning "Friend" in Nepali. Sathi is a human-friendly, open-source programming language designed to make coding feel natural, expressive, and approachable for Nepali speakers. By using Romanized Nepali syntax, Sathi removes the language barrier for beginners while maintaining a fully functional, ASCII-compatible environment.
๐ Quick Links
| Resource | Link |
|---|---|
| ๐ Website | nirajang.com.np |
| ๐ฆ PyPI | pip install sathi-lang |
| ๐ป VS Code | Sathi Language Extension |
| ๐งฉ GitHub | nirajang20/Sathi-Language |
๐ Syntax at a Glance
Sathi uses familiar Nepali keywords to handle logic. Here is a look at the "Sathi-way" of coding:
sathi yo ho naam = "Nirajan"
sathi bhana "Namaste, " + naam
sathi bhane naam == "Nirajan"
sathi bhana "Sathi is ready!"
sathi natra
sathi bhana "Try again!"
sathi sakyo
sathi dohorau 3 choti
sathi bhana "Coding is fun!"
sathi sakyo
Core Keywords
| English Meaning | Sathi Keyword | Description |
|---|---|---|
bhana |
Output text to the console | |
| Variable | yo ho |
Declare a new variable |
| If / Else | bhane / natra |
Conditional logic blocks |
| Loop | dohorau ... choti |
Iterative execution |
| End Block | sakyo |
Closes a logic block |
| Function | kam gar / gara |
Define and call functions |
โ๏ธ Getting Started
1. Installation
Sathi is hosted on PyPI. You can install the interpreter globally using pip:
pip install sathi-lang
2. Run Your First Program
Create a file named namaste.sathi:
sathi bhana "Namaste, Sathi!"
Execute it via the CLI:
sathi namaste.sathi
3. Developer Tooling
For the best experience, install the Sathi Language Extension in VS Code to get:
- โจ Syntax Highlighting
- โจ๏ธ Code Snippets
- ๐ ๏ธ IntelliSense Support
๐ง The Engineering Behind Sathi
The Sathi interpreter is built in Pure Python, focusing on a clean Tokenizer-Parser architecture:
- CLI Interpreter: Robust error handling and multi-platform support (Windows, macOS, Linux).
- Scope Management: Supports local/global variable scoping and function stacks.
- Logic Engine: Handles complex expressions, nested math, and iterative loops.
๐ฎ Roadmap & Future Milestones
The journey doesn't stop here. Future releases (v1.2+) will include:
- Nested Loops: Support for multi-level logic chaining.
- Online Playground: A browser-based IDE to run Sathi code without installation.
- Standard Library: Built-in modules for advanced math, string manipulation, and file I/O.
- Community Docs: An interactive guide at
nirajang.com.np/sathi.
๐ Connect & Contribute
Creating Sathi has been a journey of blending culture with technology. If this project inspires you, Iโd love to collaborate!
- Email: [email protected]
- LinkedIn: in/nirajang
- GitHub: Star the repo at nirajang20/Sathi-Language