Skip to content

🕉️ Devan is a Sanskrit-based programming language with offline AI-powered auto-translation, encrypted file saving, and multi-language execution in Python, PHP, and more. Write in English or Sanskrit — code the sacred way

License

Notifications You must be signed in to change notification settings

david0154/Devan

Repository files navigation

Devan Logo

🕉️ Devan Programming Language (.Om)

A Sanskrit-based language powered by Python & PHP


🔹Overview

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


🧪 Example

File: test.Om

आयातः "गणकसंग्रहः"
मान = गणकसंग्रहः.sqrt(१६)
लेखय "उत्तर:", मान

पीएचपी_कोड = "echo sqrt(16);"
चालय "php", पीएचपी_कोड

Output (Python):

import math
value = math.sqrt(16)
print("उत्तर:", value)

🔐 After encryption

🧠 कृत्रिमबुद्ध्या संस्कृतानुवादः सिद्धः।
🔐 सङ्केतनं सम्पूर्णम्।
📜 विसङ्केतनं सम्पूर्णम्।
▶️ निष्पादनं आरब्धम्...
उत्तरः: ४.०

🚀 Quick Start

git clone https://github.com/david0154/Devan.git
cd Devan
pip install -r requirements.txt
python devan_runner.py run test_file/calculator.om

🛠️ CLI Commands

devan run hello.Om
devan compile hello.Om --lang python
devan compile hello.Om --lang php

📁 Directory Structure

Devan/
├── 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/

🤝 Contributing

We welcome contributions! To contribute:

  1. Fork the repo
  2. Create your feature branch: git checkout -b feature/AmazingFeature
  3. Commit changes: git commit -m 'Add feature'
  4. Push: git push origin feature/AmazingFeature
  5. Open a Pull Request

📜 License

This project is licensed under the MIT License.


✨ Credits


About

🕉️ Devan is a Sanskrit-based programming language with offline AI-powered auto-translation, encrypted file saving, and multi-language execution in Python, PHP, and more. Write in English or Sanskrit — code the sacred way

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •