https://github.com/george-language/glang
Primary source code repository for George Language
https://github.com/george-language/glang
programming-langauge rust
Last synced: about 2 months ago
JSON representation
Primary source code repository for George Language
- Host: GitHub
- URL: https://github.com/george-language/glang
- Owner: george-language
- License: gpl-3.0
- Created: 2025-04-04T03:31:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-27T02:15:41.000Z (3 months ago)
- Last Synced: 2026-03-27T08:45:48.116Z (3 months ago)
- Topics: programming-langauge, rust
- Language: Rust
- Homepage: https://george-language.github.io/
- Size: 5.25 MB
- Stars: 26
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[Website](https://george-language.github.io/) | [Download](https://george-language.github.io/docs/install/) | [Learn](https://george-language.github.io/book/) | [Documentation](https://george-language.github.io/docs/)
_A dog-themed, interpreted programming language for beginners._
## Why George Language?
GLang was made because beginner-friendly languages donβt have to be boring. GLang is:
- **Approachable:** Simple syntax and fun naming conventions to help users learn quick. Functions like `bark`, `chew`, and `uhoh` make coding more intuitive and playful.
- **Educational:** Teaches real programming concepts under the hood, like data structures (lists, strings) and collections such as hashmap.
- **All-In-One:** The `glang` binary includes the GLang runtime, package management, and component tools like `glang self update`
## Syntax
GLangβs syntax is designed to be fun, easy, and good on the eyes, while still teaching real programming concepts.
### 𦴠Basic Types
```
# glang has 3 primary types
obj list = [1, 2, 3];
obj string = "This is a string";
obj number = 3.14;
```
### π Constants
```
# "stay" makes a value constant
stay CONSTANT = true;
```
### π Functions
```
# Define a function with "func"
func example(arg1) {
give arg1; # 'give' = return
}
```
### π€ Conditionals
```
if 1 == 2 {
bark("Math broke!");
} alsoif 1 == 3 {
bark("Math is very broken!");
} otherwise {
bark("Math is working just fine.");
}
```
### π Loops
```
# While loop
while true {
leave; # stop a loop
}
# For loop
walk i = 0 through 10 {
bark(i);
}
```
### π¦ Imports
```
# Bring in external modules
fetch std_math;
bark(math_pi);
```
### π§© Error Handling
```
try {
1 / 0;
} catch error {
bark("Some error occurred: " + error);
}
```
## Features
- πΆ Whimsical, ultra-friendly syntax
- π Built-in modules for math, strings, and more
- π¬ Easy-to-understand functions like `dig()`, `bury()`, and `uhoh()`
- π¦ Package management with `kennels` and extensibility with `fetch`
- π Open source and growing community
## Installation
You can download GLang [here](https://george-language.github.io/docs/install/), or check out the quick setup instructions in the [guide book](https://george-language.github.io/book/).
## License
George Language is licensed under **GPL v3**. That means it's **free, open source, and always will be** just like George's spirit!