aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-03-04 11:04:53 -0600
committerGitHub <noreply@github.com>2023-03-04 11:04:53 -0600
commit3ef6d8188e97301ea9b3278c103565f509877a45 (patch)
treeccae28db7b0b877fc6bbd2163903bad342bc55fc
parent0c5616a91d7280341dc6aa522daf04d151108d4e (diff)
parent9387325c8e92edf3afc13e8711a50f12cf5e0feb (diff)
downloadsloth-3ef6d8188e97301ea9b3278c103565f509877a45.tar.gz
Merge pull request #1 from nic-gaffney/master
Fixed parenthesis in fib.sloth print
-rw-r--r--README.md4
-rw-r--r--examples/fib.sloth12
2 files changed, 10 insertions, 6 deletions
diff --git a/README.md b/README.md
index e9fb460..ff7360f 100644
--- a/README.md
+++ b/README.md
@@ -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));