diff options
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | examples/fib.sloth | 12 |
2 files changed, 10 insertions, 6 deletions
@@ -1 +1,5 @@ # Sloth - Blazingly Slow™ +Sloth is an interpreted high level language written in Rust. The syntax is meant to be close to Python but with sprinkles of Rust. + +## Build +To build sloth is easy, just run `cargo build` and you will have your own version of sloth! diff --git a/examples/fib.sloth b/examples/fib.sloth index e98764a..1031d1c 100644 --- a/examples/fib.sloth +++ b/examples/fib.sloth @@ -16,9 +16,9 @@ fn fib(n: i32) -> i32 { return me; } -print fib(0); -print fib(1); -print fib(2); -print fib(3); -print fib(4); -print fib(5); +print(fib(0)); +print(fib(1)); +print(fib(2)); +print(fib(3)); +print(fib(4)); +print(fib(5)); |
