SCompiler/test
2025-05-16 16:50:34 +08:00

37 lines
708 B
Plaintext

module: CommonTasks
function: main
parameter:
return_type:int
body:
declare x : int
declare x : string
y = 5
x = "hello"
if x then
declare z : float
declare z : int
else
z = 3.14
end if
return CommonTasks.test(3, "a")
end body
end function
function: test
parameter:
declare num1 : int
declare num2 : int
return_type:int
body:
declare result : int
result = num1 + "hello"
return result
end body
end function
end module