diff --git a/playground/Demo/Demo25/Main.snow b/playground/Demo/Demo25/Main.snow new file mode 100644 index 0000000..d83e6a4 --- /dev/null +++ b/playground/Demo/Demo25/Main.snow @@ -0,0 +1,23 @@ +module: Main + import: os,ModuleA + globals: + declare c: int = 10 + function: main + returns: void + body: + c = ModuleA.getA() + os.print(c) + end body + end function +end module + +module: ModuleA + globals: + declare a: int = 2 + function: getA + returns: int + body: + return a + end body + end function +end module diff --git a/playground/Demo/Demo25/OS.snow b/playground/Demo/Demo25/OS.snow new file mode 100644 index 0000000..1982627 --- /dev/null +++ b/playground/Demo/Demo25/OS.snow @@ -0,0 +1,11 @@ +module: os + import: os + function: print + params: + declare i1: int + returns: void + body: + syscall("PRINT",i1) + end body + end function +end module \ No newline at end of file