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