test: 增加例子代码
This commit is contained in:
parent
c09c8845fb
commit
fe1adb0a21
17
playground/Demo3/Main.snow
Normal file
17
playground/Demo3/Main.snow
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user