A Sanskrit-based language powered by Python & PHP
Devan is a Sanskrit-inspired programming language that allows you to write logical code in the sacred style of Sanskrit. It supports both interpreting and compiling into modern languages like Python and PHP. Code files use the .Om extension and are translated using a custom Sanskrit-to-code mapping system.
📦 Key Features
🧠 Interpreter for .Om files – Run directly via Python
🛠 Compiler – Convert .Om to .py or .php seamlessly
📜 Sanskrit-to-Code Mapping – Powered by a customizable JSON-based structure
🔄 Auto AI Translation – Translate English input to Sanskrit using offline Indic NLP models
🔐 Local File Encryption – Auto-encrypt original and translated files for privacy
📦 One-Line Installer – Automatically install required Python packages
💻 CLI Tool – Simple commands like devan run and devan compile
🧰 PHP Runtime Support – Execute .Om code in PHP using built-in executor
🧱 Cross-Platform – Works on Windows, macOS, Linux, and Ubuntu
File: test.Om
आयातः "गणकसंग्रहः"
मान = गणकसंग्रहः.sqrt(१६)
लेखय "उत्तर:", मान
पीएचपी_कोड = "echo sqrt(16);"
चालय "php", पीएचपी_कोड
Output (Python):
import math
value = math.sqrt(16)
print("उत्तर:", value)🧠 कृत्रिमबुद्ध्या संस्कृतानुवादः सिद्धः।
🔐 सङ्केतनं सम्पूर्णम्।
📜 विसङ्केतनं सम्पूर्णम्।
▶️ निष्पादनं आरब्धम्...
उत्तरः: ४.०git clone https://github.com/david0154/Devan.git
cd Devan
pip install -r requirements.txt
python devan_runner.py run test_file/calculator.omdevan run hello.Om
devan compile hello.Om --lang python
devan compile hello.Om --lang phpDevan/
├── devan_parser.py
├── devan_compiler.py
├── devan_runner.py
├── devan_installer.py
├── devan_php_runner.py
├── devan_stdlib.json
├── requirements.txt
├── logo.png
├── LICENSE
└── test_files/
We welcome contributions! To contribute:
- Fork the repo
- Create your feature branch:
git checkout -b feature/AmazingFeature - Commit changes:
git commit -m 'Add feature' - Push:
git push origin feature/AmazingFeature - Open a Pull Request
This project is licensed under the MIT License.
- Author: David
- Company: Nexuzy Tech Pvt Ltd
- Email: nexuzypvtltd@gmail.com
