An open API service indexing awesome lists of open source software.

https://github.com/psidh/ganges

Ganges is a modern, dynamically typed, interpreted language with Sanskrit-inspired syntax. Built in Go, Ganges is designed to be fun, expressive, and powerful, perfect for scripting, learning, and exploring core programming concepts in a new light.
https://github.com/psidh/ganges

ast backend go golang interpreter lexer low-level parser programming-language

Last synced: 3 months ago
JSON representation

Ganges is a modern, dynamically typed, interpreted language with Sanskrit-inspired syntax. Built in Go, Ganges is designed to be fun, expressive, and powerful, perfect for scripting, learning, and exploring core programming concepts in a new light.

Awesome Lists containing this project

README

          

# ๐ŸŒŠ Ganges Programming Language

**Ganges** is a modern, dynamically typed, interpreted language with Sanskrit-inspired syntax. Built in Go, Ganges is designed to be fun, expressive, and powerful โ€” perfect for scripting, learning, and exploring core programming concepts in a new light.

VISIT : [Official Website](https://ganges.psidharth.dev)

## โšก Quick Start

### 1. Install Ganges

**Download the latest binary for your OS:**

Visit Download section for complete details : [Download Section](https://ganges.psidharth.dev/downloads)

### Run the repl

```bash
gangesMac
```
---

VISIT Docs for extensive info : [Official Docs](https://ganges.psidharth.dev/docs)

## โœจ Language Features

| Concept | Ganges Keyword | Description |
| -------------- | ------------------ | -------------------- |
| Variable | `rama` | Declare a variable |
| Function | `kriya` | Define a function |
| If / Else | `yadi` / `anyatha` | Conditional logic |
| Print | `vadah` | Console output |
| While loop | `chakra` | Loop construct |
| Return | `daan` | Return from function |
| Boolean values | `satya` / `asatya` | true / false |

---

## ๐Ÿง  Examples

### Variables & Arithmetic

```ganges
rama x = 10;
rama y = 20;
vadah(x + y); // 30
```

### Functions

```ganges
rama greet = kriya(name) {
vadah("Namaste, " + name);
};
greet("Sita");
```

### Conditionals

```ganges
rama mood = yadi (5 > 3) {
"happy"
} anyatha {
"sad"
};
vadah(mood); // happy
```

### Loops

```ganges
rama i = 0;
chakra (i < 5) {
vadah(i);
i = i + 1;
};
```

---

## ๐Ÿงช Try Ganges Online

๐Ÿ‘‰ [Playground (Web)](https://ganges.psidharth.dev/playground)

---

## ๐Ÿ“š Learn More

- ๐Ÿ“– [Full Documentation](https://ganges.psidharth.dev/docs)
- ๐Ÿš€ [Basics](https://ganges.psidharth.dev/docs/basics)
- ๐Ÿง  [Advanced](https://ganges.psidharth.dev/docs/advanced)
- ๐ŸŽฎ [Fun Algorithms](https://ganges.psidharth.dev/docs/fun)

---

## ๐Ÿ›  Built With

- ๐Ÿน **Go** for the interpreter
- โค๏ธ Love for Sanskrit & clean syntax

---

## ๐Ÿ“Œ License

Apache 2.0

---

## ๐Ÿ™ Inspired by

- Monkey (by Thorsten Ball)
- Python & JavaScript (for simplicity)
- Sanskrit (for semantics & elegance)