test: 更新 Demo1

This commit is contained in:
Luke 2025-06-28 16:30:14 +08:00
parent 7a2b65c013
commit b2d7d493d5
2 changed files with 7 additions and 9 deletions

View File

@ -1,11 +1,9 @@
module: Main
import:Math
function: main
parameter:
return_type: int
return_type: void
body:
Math.factorial(6L,1L)
return 0
Math.add(6,1)
end body
end function
end module

View File

@ -1,9 +1,9 @@
module: Math
function: factorial
function: add
parameter:
declare n1: long
declare n2: long
return_type: long
declare n1: int
declare n2: int
return_type: int
body:
return n1 + n2
end body