test: 添加 Demo15 项目
This commit is contained in:
parent
4ccff72a5b
commit
16a5d8d6ac
9
playground/Demo/Demo15/Main.snow
Normal file
9
playground/Demo/Demo15/Main.snow
Normal file
@ -0,0 +1,9 @@
|
||||
module: Main
|
||||
import: os
|
||||
function: main
|
||||
return_type: void
|
||||
body:
|
||||
print(222)
|
||||
end body
|
||||
end function
|
||||
end module
|
||||
11
playground/Demo/Demo15/OS.snow
Normal file
11
playground/Demo/Demo15/OS.snow
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user