refactor: 重构标准库

This commit is contained in:
zhangxun 2025-08-04 14:51:24 +08:00
parent d11822f4ba
commit a8cf93671e
3 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
module: Math
function: main
parameter:
return_type: int
params:
returns: int
body:
Math.factorial(6)
return 0
@ -9,9 +9,9 @@ module: Math
end function
function: factorial
parameter:
params:
declare n:int
return_type: int
returns: int
body:
declare num1:int = 1
loop:

View File

@ -1,9 +1,9 @@
module: os
import: os
function: print
parameter:
params:
declare i1: int
return_type: void
returns: void
body:
syscall("PRINT",i1)
end body

View File

@ -1,6 +1,6 @@
function: main
parameter:
return_type: int
params:
returns: int
body:
loop:
init: