diff --git a/playground/BugFarm/Bug5/Main.snow b/playground/BugFarm/Bug5/Main.snow new file mode 100644 index 0000000..89c6c84 --- /dev/null +++ b/playground/BugFarm/Bug5/Main.snow @@ -0,0 +1,16 @@ +module: Main + import: os + globals: + declare sum: int = 0 + function: main + parameter: + return_type: int + body: + sum = 20 + + os.print(sum) + + return 0 + end body + end function +end module \ No newline at end of file diff --git a/playground/BugFarm/Bug5/OS.snow b/playground/BugFarm/Bug5/OS.snow new file mode 100644 index 0000000..6026d43 --- /dev/null +++ b/playground/BugFarm/Bug5/OS.snow @@ -0,0 +1,11 @@ +module: os + import: os + function: print + parameter: + declare i1: int + return_type: void + body: + syscall("PRINT",i1) + end body + end function +end module \ No newline at end of file