Sloth is an interpreted programming language, implemented in Rust. Its syntax is inspired by C-like languages, Rust, Python, and Lisp-like languages.
It does not have a precise goal, except maybe existing, and it is quite slow, so you may not want to use it for something other than experimentation.
``` builtin io;
define factorial: num -> num { @return = 1; i = 2;
while <= i @0 {
@return = * @return i;
i = + i 1;
};
}
define main: num -> num { print(factorial(@0) "\n"); } ``` The syntax, logic and specifications of Sloth are described in the documentation.
Install using cargo:
$ cargo install slothlang
Sloth is licensed under the Apache-2.0 License.