https://github.com/adlonymous/mouslang
A high level dynamically typed programming language
https://github.com/adlonymous/mouslang
Last synced: 4 months ago
JSON representation
A high level dynamically typed programming language
- Host: GitHub
- URL: https://github.com/adlonymous/mouslang
- Owner: adlonymous
- Created: 2024-12-25T07:24:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T08:03:33.000Z (over 1 year ago)
- Last Synced: 2025-05-18T23:09:57.131Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 46.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Mous Programming Language
A high level, dynamically typed, interpreted programming language, designed as a member of the C family of programming languages.
## Hello World
```
print "Hello, Mous!";
```
## Data Types
### Boolean: Good ol' true and false
```
true;
false;
```
### Numbers: Double precision floating point numbers
```
1234;
12.34;
```
### Strings: String literals
```
"Hello, Mous!";
```
### Nil: Represents the absence of a value
## Expressions
### Arithmetic
Basic arithmetic operations are supported: `+`, `-`, `*`, `/`.
```
add + me;
subtract - me;
multiply * me;
divide / me;
```
### Comparison and Equality
Comparing numbers
```
less < than;
lessThan <= orEqual;
greater > than;
greaterThan >= orEqual;
```
Testing the equality of two values (even different types, which would always return false)
```
equal == to;
notEqual != to;
123 == "123";
```
### Logical
Uses the prefix operators `!` for negation, `and` for conjunction, and `or` for disjunction.
```
!true
!false
true and false;
true and true;
false or false;
true or false;
```