An extremely expressive, friendly scripting language
2

Configure Feed

Select the types of activity you want to include in your feed.

C 68.6%
Rust 28.9%
C++ 0.9%
JavaScript 0.8%
Tree-sitter Query 0.2%
Nix 0.1%
Shell 0.1%
Other 0.5%
114 1 0

Clone this repository

https://tangled.org/hanna.lol/suwi https://tangled.org/did:plc:26rw4sip2aldbwgcpu36gjwg
git@knot.hanna.lol:hanna.lol/suwi git@knot.hanna.lol:did:plc:26rw4sip2aldbwgcpu36gjwg

For self-hosted knots, clone URLs may differ based on your setup.



README.md

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.