diff options
| author | Cody <cody@codyq.dev> | 2023-06-19 03:38:41 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-06-19 03:38:41 -0500 |
| commit | c22410c6f334497a404f0b708ae94be527a8f0ee (patch) | |
| tree | 0ce2ead405e647d6636873d3a7f43fc9ca915da1 /examples/hello.sloth | |
| parent | 8182f182e69bcde7376661757b5cf7f905f3433b (diff) | |
| download | sloth-c22410c6f334497a404f0b708ae94be527a8f0ee.tar.gz | |
Parser works with function calls
Diffstat (limited to 'examples/hello.sloth')
| -rw-r--r-- | examples/hello.sloth | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hello.sloth b/examples/hello.sloth index 0da2fd0..fea5304 100644 --- a/examples/hello.sloth +++ b/examples/hello.sloth @@ -1,6 +1,7 @@ fn main() { var i: Int = 10; - while i > 0 { + var j: Int = int(1.0) - 1; + while i > j { i = i - 1; } } |
