A very simple interpreter written in Rust for learning purposes. The only dependency is on the Rust standard lib and lazy_static crate for a single line.
x = 1
y = 2
z = (x + y) / 2
w = (x, y, 3*z, 5)
func add(x, y) {
return x + y
}
print(add(1, 2))
a = true
if (a) {
print("a is true")
} else {
print("a is false")
}
a = (1, 2, 3)
b = (4, 5)
a + b (new concatenated list)
a | b (extend list a with b's data)
a@1 (access index)
a@1 = 4 (assign to index)