test: 更新 Demo1
This commit is contained in:
parent
7a2b65c013
commit
b2d7d493d5
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user