migrate: own format/io/console/stream sources and preserve the print alias target
Move the official stdlib IO modules to their unique source authority and keep the frozen public paths, including io.mq.md#写值 as the official print/打印 alias target. Carry the pre-migration product assertions into component cases with real resource-endpoint evidence for console. Refs cflmy/marqdo#9, cflmy/marqdo-std-io#1
This commit was merged in pull request #2.
This commit is contained in:
1 parent
945e76eed8
commit
e18b0b1b40
16 files changed
+1043
-6
No files matched your search
@@ -0,0 +1,40 @@
|
||||
---
|
||||
import:
|
||||
format: "./format.mq.md"
|
||||
stream: "./io/stream.mq.md"
|
||||
console: "./io/console.mq.md"
|
||||
---
|
||||
|
||||
# @exec io
|
||||
|
||||
## 写文本
|
||||
|
||||
`params(文本)`
|
||||
|
||||
`return stream.写文本(文本)`
|
||||
|
||||
## 写全部
|
||||
|
||||
`params(流, 内存, 起点, 长度)`
|
||||
|
||||
`return stream.写全部(流, 内存, 起点, 长度)`
|
||||
|
||||
## 写值
|
||||
|
||||
`params(值)`
|
||||
|
||||
按语言值语义格式化后输出,并追加换行。
|
||||
|
||||
`return stream.写文本(format.显示(值) + "\n")`
|
||||
|
||||
## 读取行
|
||||
|
||||
`params()`
|
||||
|
||||
`return console.读取行()`
|
||||
|
||||
## 打印
|
||||
|
||||
`params(值)`
|
||||
|
||||
`return console.打印(值)`
|
||||
Reference in new issue
Block a user