Files
marqdo-cli/stdlib/tests/table.mq.md
T
cflmy 1f6fd644a0 feat(ext): single callable binding, provider v2 CLI, capability handlers, stdlib aliases
Implements RFC-EXT-0001 PR-00..PR-07 first pass:
- CallSiteKey/CallBindingTable + one frontend binding pass; runtime dispatch by identity
- prepare composition root shared by check/run/inspect/Analysis; exact plugin reconciliation
- provider.json v2 --provider/--allow-provider worker CLI with fail-closed verification
- capability handler registry with real fs.read and audit
- verified stdlib public aliases replace print_override/AST scan
- docs: specs, ADR-0054/0055/0057/0058, README, CI/release gates, evidence

PR-04 extension selection/lock v4 and final frozen-binary evidence remain.
2026-11-22 00:17:36 +08:00

782 B

import
import
table_lib
std:data/table

@exec table

main

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

选择 = table_lib.选择列(数据, 1)

过滤 = table_lib.过滤数值大于(数据, 1, 80)

排序 = table_lib.排序(数据, 1)

追加 = table_lib.追加行(数据, ["丁", 65])

设置 = table_lib.设置单元格(数据, 0, 1, 99)

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

右 = 表(["名称", "等级"], "乙", "A"], ["甲", "B")

连接 = table_lib.连接(左, 右, 0, 0)

分组 = table_lib.分组(表(["类别", "值"], "a", 1], ["b", 2], ["a", 3), 0, 1)

return [选择, 过滤, 排序, 追加, 设置, 连接, 分组, 数据, table_lib.转GFM(数据)]