suwi#
An expressive, friendly scripting language focused on being easy to use.
Example Program#
Here is a basic program displaying fibonacci and utilizing ffi.
foreign "libc" {
printf: fn(str) -> void
}
fn fib(x: i32) -> i32 {
if (x < 3) { 1 } else { fib(x - 1) + fib(x - 2) }
}
while (i: 0..25) {
printf("fib $(i) = $(fib(i))\n")
}
You can see more examples in the docs/examples folder.