test: 添加 Demo25 示例项目

This commit is contained in:
Luke 2025-08-26 18:09:01 +08:00
parent caa62b0bfb
commit 5537a448e8
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,23 @@
module: Main
import: os,ModuleA
globals:
declare c: int = 10
function: main
returns: void
body:
c = ModuleA.getA()
os.print(c)
end body
end function
end module
module: ModuleA
globals:
declare a: int = 2
function: getA
returns: int
body:
return a
end body
end function
end module

View File

@ -0,0 +1,11 @@
module: os
import: os
function: print
params:
declare i1: int
returns: void
body:
syscall("PRINT",i1)
end body
end function
end module