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 module: Main
import:Math import:Math
function: main function: main
parameter: return_type: void
return_type: int
body: body:
Math.factorial(6L,1L) Math.add(6,1)
return 0
end body end body
end function end function
end module end module

View File

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