- 重构 BuiltinTypeRegistry 类,扩展内置类型和模块的注册功能 - 新增 BuiltinUtils 标准库模块,提供 print 和 println 函数 - 实现 syscall 内核函数,供 BuiltinUtils 内部使用 - 更新测试用例,添加 Demo14 项目以验证新功能
20 lines
319 B
Plaintext
20 lines
319 B
Plaintext
module: BuiltinUtils
|
|
function: print
|
|
parameter:
|
|
declare msg: int
|
|
return_type: void
|
|
body:
|
|
syscall("PRINT",1)
|
|
end body
|
|
end function
|
|
|
|
function: println
|
|
parameter:
|
|
declare msg: int
|
|
return_type: void
|
|
body:
|
|
syscall("PRINTLN",1)
|
|
end body
|
|
end function
|
|
end module
|