test: 添加 Demo19 项目

This commit is contained in:
Luke 2025-08-01 18:36:06 +08:00
parent 82f4ba1a6e
commit 028561fc4f
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,14 @@
module: Main
import: os
function: main
return_type: void
body:
declare cols: int = 2
declare matrix: int[] = [1, 2, 3, 4]
declare x: int = matrix[cols]
os.print(x)
end body
end function
end module

View 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