增加注释
This commit is contained in:
parent
56301944fa
commit
dc20eb4bf2
21
test
21
test
@ -5,31 +5,20 @@ module: CommonTasks
|
|||||||
return_type:int
|
return_type:int
|
||||||
|
|
||||||
body:
|
body:
|
||||||
declare x : int
|
|
||||||
declare x : string
|
|
||||||
y = 5
|
|
||||||
x = "hello"
|
|
||||||
|
|
||||||
if x then
|
return CommonTasks.test(3,1)
|
||||||
declare z : float
|
|
||||||
declare z : int
|
|
||||||
else
|
|
||||||
z = 3.14
|
|
||||||
end if
|
|
||||||
|
|
||||||
return CommonTasks.test(3, "a")
|
|
||||||
end body
|
end body
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function: test
|
function:test
|
||||||
parameter:
|
parameter:
|
||||||
declare num1 : int
|
declare num1:int
|
||||||
declare num2 : int
|
declare num2:int
|
||||||
return_type:int
|
return_type:int
|
||||||
body:
|
body:
|
||||||
declare result : int
|
declare result : int
|
||||||
|
|
||||||
result = num1 + "hello"
|
result = num1 + num2
|
||||||
return result
|
return result
|
||||||
end body
|
end body
|
||||||
end function
|
end function
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user