Skip to content

Files

Latest commit

674a4f3 · Jan 2, 2025

History

History
70 lines (55 loc) · 1.05 KB

README.md

File metadata and controls

70 lines (55 loc) · 1.05 KB

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;