From 161243737a9e2ad42b2e6ac7f4ef4d094ea3f74c Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 11 Jun 2025 16:33:57 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=A2=9E=E5=8A=A0Demo4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .run/Demo4.run.xml | 17 +++++++++++++++++ playground/Demo4/Main.snow | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 .run/Demo4.run.xml create mode 100644 playground/Demo4/Main.snow diff --git a/.run/Demo4.run.xml b/.run/Demo4.run.xml new file mode 100644 index 0000000..d325c13 --- /dev/null +++ b/.run/Demo4.run.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/playground/Demo4/Main.snow b/playground/Demo4/Main.snow new file mode 100644 index 0000000..4a13b7d --- /dev/null +++ b/playground/Demo4/Main.snow @@ -0,0 +1,17 @@ +module: Main + function: main + parameter: + return_type: int + body: + declare n1: int =1 + declare n2: int =2 + declare n3: int =1 + if n1 ==1 then + if n2 ==2 then + n3 =3 + end if + end if + return n3 + end body + end function +end module \ No newline at end of file