Eryx Playground
Eryx is a decently fast simple dynamically typed programming language similar to javascript/python.
Basic Data Types
- Integer
- Float
- String
- Boolean
- Array
- Dictionary
- Function
- Null
Functions
- Function Definition
- Function Call
- Return Keyword
Operators
- Arithmetic Operators
- Assignment Operators
- Comparison Operators
Control Structures
const timenow = time();
func add (x, y) {
let result = x + y;
func sub (a, b) {
a - b
}
let result2 = sub(y, x);
let obj2 = {
x,
y
};
let five = 10 - 5;
const neg_num = -1000;
let float = 69.420;
const str = "Strings work!!!!";
let obj = {
five,
neg_num,
float,
result2,
timenow,
result,
object: obj2,
str
};
obj
}
print(add(5, 7))
func makeAdder(offset) {
func add(x, y) {
x + y + offset
}
add
}
let adder = makeAdder(10);
print(adder(10, 5))