Ivy 🌿 is a high-level programming language focused on functional programming and extensibility. It is inspired by Python, Haskell, and Clojure. Ivy is still a work in progress, I'm currently re-implementing it in Rust. Currently, the REPL only prints the abstract syntax tree:
Here's a preview of what the code will look like:
// One way to express a factorial function. let fact = fn (0) -> 1; let fact = fn (x) -> x * fact(x - 1); // Another way using the match statment. let fact_two = fn (x) -> match (x) ( | 0 -> 1 | x -> x * fact_two(x - 1) ); // Call the function fact_two(12); |
The source code is available on github.