Files
marqdo-cli/stdlib/demo.mq.md
T
cflmy e119727c5d feat(stdlib): format all value types and expose handle identity members
- Add read-only FunctionRef.module/name and PluginHandle.plugin/export
  members; PluginHandle.id stays private (ADR-0029).
- Extend stdlib/format.mq.md to Formula/Code/FunctionRef/PluginHandle/
  Memory/Resource/Unit, with UTF-8 byte length for Code.
- Fix two-digit ordered-list body indentation so arms 10+ stay inside their
  branch (they were previously top-level statements).
- Extend stdlib demo to Formula/Code/FunctionRef and assert all three
  io.写值/打印 pairs match byte-for-byte.
- Add runtime member observation test, ADR-0029, spec/status/changelog/evidence.

Gate: fmt, clippy -D warnings, 416 tests passed.
2026-11-20 21:57:04 +08:00

451 B

import
import
io
./io.mq.md

演示函数

1

main

公式

a = 1

代码

print(1)

列表 = ["文本", 2, 1.5, [3, true], {a: 1, b: "x"}, None]

io.写值(列表)

打印(列表)

表格 = 表(["名称", "分数"], "甲", 87], ["乙", 92)

io.写值(表格)

打印(表格)

特殊 = [ref("#公式"), ref("#代码"), ref("#演示函数")]

io.写值(特殊)

打印(特殊)

None