diff options
| author | Cody <cody@codyq.dev> | 2023-06-23 22:01:38 -0500 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-06-23 22:01:38 -0500 |
| commit | a8b21ebd34aa2d1d750eecc22f3f252c04198fd0 (patch) | |
| tree | f239ce3dc8f698ecd350a32743c52ea0a96af4c5 /examples/hello.sloth | |
| parent | 3bceb8ff306775a4204063de765cce730a31ffb2 (diff) | |
| download | sloth-a8b21ebd34aa2d1d750eecc22f3f252c04198fd0.tar.gz | |
Integrated symbol tables into AST
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 fea5304..8b395e8 100644 --- a/examples/hello.sloth +++ b/examples/hello.sloth @@ -1,8 +1,9 @@ fn main() { var i: Int = 10; - var j: Int = int(1.0) - 1; + var j: Int = 1.0 - 1; while i > j { i = i - 1; } + example(i); } |
