From 638eb245d890e0dd09dba27b08bd5c149bcd02e5 Mon Sep 17 00:00:00 2001 From: luke Date: Wed, 11 Jun 2025 22:49:10 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=E4=BE=8B=E5=AD=90?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playground/Demo4/Main.snow | 1 + playground/Demo5/Main.snow | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 playground/Demo5/Main.snow diff --git a/playground/Demo4/Main.snow b/playground/Demo4/Main.snow index 850bfc9..60d39a4 100644 --- a/playground/Demo4/Main.snow +++ b/playground/Demo4/Main.snow @@ -4,6 +4,7 @@ module: Main return_type: boolean body: declare b1: boolean =true + return b1 end body diff --git a/playground/Demo5/Main.snow b/playground/Demo5/Main.snow new file mode 100644 index 0000000..1ee54d8 --- /dev/null +++ b/playground/Demo5/Main.snow @@ -0,0 +1,21 @@ +module: Main + function: main + parameter: + return_type: int + body: + declare b1: boolean = false + loop: + initializer: + declare i:int = 0 + condition: + b1 + update: + i = i + 1 + body: + + end body + end loop + return 0 + end body + end function +end module \ No newline at end of file