Files
marqdo-std-io/modules/io.mq.md
cflmy e18b0b1b40 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
2026-11-26 23:30:27 +08:00

41 lines
544 B
Markdown

---
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.打印(值)`