From a8b21ebd34aa2d1d750eecc22f3f252c04198fd0 Mon Sep 17 00:00:00 2001 From: Cody Date: Fri, 23 Jun 2023 22:01:38 -0500 Subject: Integrated symbol tables into AST --- examples/hello2.sloth | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/hello2.sloth (limited to 'examples/hello2.sloth') diff --git a/examples/hello2.sloth b/examples/hello2.sloth new file mode 100644 index 0000000..589d969 --- /dev/null +++ b/examples/hello2.sloth @@ -0,0 +1,11 @@ +fn example() {} + +fn main() { + var i: Int = 10; + var j: Int = 1.0 - 1; + while i > j { + i = i - 1; + } + example(i); +} + -- cgit v1.2.3