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.
- Host: GitHub
- URL: https://github.com/psidh/ganges
- Owner: psidh
- License: apache-2.0
- Created: 2024-03-17T18:25:42.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-17T11:41:14.000Z (8 months ago)
- Last Synced: 2025-06-24T17:45:16.962Z (7 months ago)
- Topics: ast, backend, go, golang, interpreter, lexer, low-level, parser, programming-language
- Language: Go
- Homepage:
- Size: 103 KB
- Stars: 12
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)