From 16a5d8d6ac5267e43f80360ced4e99484479dde3 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 28 Jul 2025 09:56:09 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=B7=BB=E5=8A=A0=20Demo15=20=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/Demo/Demo15/Main.snow | 9 +++++++++ playground/Demo/Demo15/OS.snow | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 playground/Demo/Demo15/Main.snow create mode 100644 playground/Demo/Demo15/OS.snow diff --git a/playground/Demo/Demo15/Main.snow b/playground/Demo/Demo15/Main.snow new file mode 100644 index 0000000..7ef2b05 --- /dev/null +++ b/playground/Demo/Demo15/Main.snow @@ -0,0 +1,9 @@ +module: Main + import: os + function: main + return_type: void + body: + print(222) + end body + end function +end module \ No newline at end of file diff --git a/playground/Demo/Demo15/OS.snow b/playground/Demo/Demo15/OS.snow new file mode 100644 index 0000000..6026d43 --- /dev/null +++ b/playground/Demo/Demo15/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