diff options
| author | Cody <cody@codyq.dev> | 2023-03-04 11:04:53 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-04 11:04:53 -0600 |
| commit | 3ef6d8188e97301ea9b3278c103565f509877a45 (patch) | |
| tree | ccae28db7b0b877fc6bbd2163903bad342bc55fc | |
| parent | 0c5616a91d7280341dc6aa522daf04d151108d4e (diff) | |
| parent | 9387325c8e92edf3afc13e8711a50f12cf5e0feb (diff) | |
| download | sloth-3ef6d8188e97301ea9b3278c103565f509877a45.tar.gz | |
Merge pull request #1 from nic-gaffney/master
Fixed parenthesis in fib.sloth print
| -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)); |
