An unnamed toy programming language, inspired by Rust and Python.
Sample code:
// Calculates the x'th Fibonacci number
let fib = |x| {
if x == 0 {
0
} else if x == 1 {
1
} else {
fib(x - 1) + fib(x - 2)
}
}
fib(15)
To run locally:
- Clone this repository somewhere
- Run
cargo test
to verify everything works correctly - Run
cargo run --release sample.txt
to run the above sample code.