sanscript-lang

1.0.2 • Public • Published

🪔 SanScript Language

SanScript Language is a Devanagari-script based programming language developed by Atikin Verse. Inspired by the structure and elegance of Sanskrit grammar, SanScript offers a culturally rooted and beginner-friendly coding experience that blends tradition with technology.

🔹 Inspired by: Sanskrit Grammar 🔹 File extension: .ss 🔹 Keywords: कार्य, प्रदत्त, केवल, स्थिर, छापय, मुख्य

SanScript Language is more than just a language — it brings the richness of Indian heritage into the world of programming, making code more intuitive and connected to our roots.

Created by Atikin Verse.


🔤 Syntax Translation Table

🧠 SanScript Language Syntax 💻 JavaScript Equivalent
कार्य मुख्य() function main()
छापय("नमस्ते") console.log("Namaste")
केवल अ = 5 let a = 5
स्थिर अ = 10 const a = 10
परिवर्तनीय अ = 20 var a = 20
यदि (अ > 5) if (a > 5)
अन्यथा यदि (अ == 5) else if (a == 5)
अन्यथा else
जबतक (अ < 10) while (a < 10)
के लिए (केवल i = 0; ...) for (let i = 0; ...)
प्रदत्त अ + ब return a + b
मुख्य(); main();

🚀 Features

🌟 Feature 🔎 Description
Simple Sanskrit-like Syntax Write code using Devanagari characters.
Built on JavaScript Compiles to and runs JavaScript.
CLI Tool Support Run .ss files easily via CLI.
Easy to Learn Ideal for Sanskrit or Hindi medium learners.
Snippets and Keywords Common constructs like loops, functions, etc.

✨ Sample Code

📄 hello.ss

कार्य मुख्य() {
  छापय("नमस्ते जगत्");
}
मुख्य();

---

### 🔢 variables.ss 

```ss
कार्य मुख्य() {
  केवल अ = 5;
  स्थिर ब = 10;
  परिवर्तनीय स =+;
  छापय(स);
}
मुख्य();

---

### 🧮 if-else.ss

```ss
कार्य मुख्य() {
  केवल अंक = 75;
  
  यदि (अंक >= 90) {
    छापय("उत्तम");
  } अन्यथा यदि (अंक >= 60) {
    छापय("अच्छा");
  } अन्यथा {
    छापय("पास");
  }
}
मुख्य();


---

### 🔁 while-loop.ss 

```ss
कार्य मुख्य() {
  केवल गिनती = 1;
  जबतक (गिनती <= 5) {
    छापय(गिनती);
    गिनती = गिनती + 1;
  }
}
मुख्य();


---

### 🔁 for-loop.ss

```ss
कार्य मुख्य() {
  के लिए (केवल i = 0; i < 5; i = i + 1) {
    छापय("संख्या: " + i);
  }
}
मुख्य();

---

### 🧮 function-return.ss

```ss
कार्य जोड़(अ, ब) {
  प्रदत्त अ +;
}

कार्य मुख्य() {
  केवल परिणाम = जोड़(10, 20);
  छापय("परिणाम: " + परिणाम);
}
मुख्य();


---

### 🗂️ array-loop.ss

```ss
कार्य मुख्य() {
  केवल फल = ["सेब", "केला", "आम"];
  के लिए (केवल i = 0; i < फल.length; i = i + 1) {
    छापय(फल[i]);
  }
}
मुख्य();

---

### 🔤 string-manipulation.ss

```ss
कार्य मुख्य() {
  केवल नाम = "संचित";
  छापय("नमस्ते " + नाम);
}
मुख्य();


---

### 🧠 logical-operators.ss

```ss
कार्य मुख्य() {
  केवल उम्र = 20;
  यदि (उम्र >= 18 && उम्र < 60) {
    छापय("वयस्क");
  } अन्यथा {
    छापय("वयस्क नहीं");
  }
}
मुख्य();


---

### 🧪 nested-function.ss

```ss
कार्य वर्ग(संख्या) {
  प्रदत्त संख्या * संख्या;
}

कार्य मुख्य() {
  केवल उत्तर = वर्ग(6);
  छापय("6 का वर्ग है: " + उत्तर);
}
मुख्य();


---

### CLI Tool

```bash
npm install -g sanscript-lang


###🔖 License

This project is licensed under the MIT License.

###👤 Author

Atikin Verse 
Made with ❤️ in India
GitHub
Website coming soon..


## FOLLOW US ON For more information:

Join our social media for exciting updates, news, and insights! Follow us on :

<!--Table-->
| ACCOUNTS                 | USERNAME          |
|------------              | --------------    |
| FACEBOOK                 | atikinverse       |
| INSTAGRAM                | atikinverse       |
| LINKEDIN                 | atikinverse       |
| TWITTER (X)              | atikinverse       |
| THREADS                  | atikinverse       |
| PINTREST                 | atikinverse       |
| QUORA                    | atikinverse       |
| REDDIT                   | atikinverse       |
| TUMBLR                   | atikinverse       |
| SNAPCHAT                 | atikinverse       |
| SKYPE                    | atikinverse       |
| GITHUB                   | atikinverse       |


Feel free to reach out if you have any questions or suggestions!

Happy Coding with SanScript Language! 🚀

Package Sidebar

Install

npm i sanscript-lang

Weekly Downloads

23

Version

1.0.2

License

MIT

Unpacked Size

11.2 kB

Total Files

9

Last publish

Collaborators

  • atikinverse