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

View File

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

View File

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