docs(ext): narrate quantum/linalg and link-index public features
Add module intros and missing purpose lines for EN/ZH quantum and linalg extensions; migrate remaining public/features footnote gets to [key](base). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
5c37d54070
commit
8d97adc1dc
17 files changed
+216
-27
No files matched your search
@@ -22,8 +22,8 @@ Declare symbols in a table, multiply, transpose — `T_ascii` is one-step displa
|
||||
| 2 | B | 3 | 2 |
|
||||
|
||||
**`env` = > la.declare table=`shapes`**
|
||||
**`A` = env[^A]**
|
||||
**`B` = env[^B]**
|
||||
**`A` = [A](env)**
|
||||
**`B` = [B](env)**
|
||||
**`P` = `A` * `B`**
|
||||
**`t` = > `P`.T_ascii**
|
||||
> print text=`t`
|
||||
|
||||
@@ -22,8 +22,8 @@ description: ext/linalg 公式文档面 — 声明、中缀、跑通即正确
|
||||
| 2 | B | 3 | 2 |
|
||||
|
||||
**`环境` = > la.声明 表=`形状`**
|
||||
**`A` = 环境[^A]**
|
||||
**`B` = 环境[^B]**
|
||||
**`A` = [A](环境)**
|
||||
**`B` = [B](环境)**
|
||||
**`P` = `A` * `B`**
|
||||
**`t` = > `P`.转置文本**
|
||||
> 打印 内容=`t`
|
||||
|
||||
@@ -14,8 +14,8 @@ Parse a tiny CSV, normalize a field, print — no plugins.
|
||||
**raw = "name,city\nAda,london\nBob,PARIS\n"**
|
||||
**rows = > csv.parse text=`raw`**
|
||||
**r0 = > at value=`rows` index=0**
|
||||
**city = > text.to_upper text=`r0`[^city]**
|
||||
> print text=`r0`[^name]
|
||||
**city = > text.to_upper text=[city](`r0`)**
|
||||
> print text=[name](`r0`)
|
||||
> print text=`city`
|
||||
**n = > len `rows`**
|
||||
1. `n` == 2
|
||||
|
||||
@@ -14,8 +14,8 @@ description: lib/逗号表 + 加厚 lib/文本(中层 M4)
|
||||
**raw = "name,city\nAda,london\nBob,PARIS\n"**
|
||||
**rows = > 逗号表.解析 内容=`raw`**
|
||||
**r0 = > at value=`rows` index=0**
|
||||
**city = > 文本.大写 内容=`r0`[^city]**
|
||||
> 打印 内容=`r0`[^name]
|
||||
**city = > 文本.大写 内容=[city](`r0`)**
|
||||
> 打印 内容=[name](`r0`)
|
||||
> 打印 内容=`city`
|
||||
**n = > 长度 `rows`**
|
||||
1. `n` == 2
|
||||
|
||||
@@ -16,12 +16,12 @@ Zero plugins: parse CSV, sort by key, parse `--input`.
|
||||
**rows = > csv.parse text=`raw`**
|
||||
**rows = > table.sort_by list=`rows` key="name"**
|
||||
**r0 = > at value=`rows` index=0**
|
||||
> print text=`r0`[^name]
|
||||
> print text=[name](`r0`)
|
||||
|
||||
**args = > split value="--input,scores.csv,--pretty" sep=","**
|
||||
**flags = > cli.parse args=`args`**
|
||||
> print text=`flags`[^input]
|
||||
1. `flags`[^pretty]
|
||||
> print text=[input](`flags`)
|
||||
1. [pretty](`flags`)
|
||||
> print text=mid-m5-ok
|
||||
2. *
|
||||
> print text=mid-m5-fail
|
||||
@@ -16,12 +16,12 @@ description: 表排序/去重 + 命令行解析(中层 M5)
|
||||
**rows = > 逗号表.解析 内容=`raw`**
|
||||
**rows = > 表.按键排序 list=`rows` key="name"**
|
||||
**r0 = > at value=`rows` index=0**
|
||||
> 打印 内容=`r0`[^name]
|
||||
> 打印 内容=[name](`r0`)
|
||||
|
||||
**args = > split value="--input,scores.csv,--pretty" sep=","**
|
||||
**flags = > 命令行.解析 参数=`args`**
|
||||
> 打印 内容=`flags`[^input]
|
||||
1. `flags`[^pretty]
|
||||
> 打印 内容=[input](`flags`)
|
||||
1. [pretty](`flags`)
|
||||
> 打印 内容=mid-m5-ok
|
||||
2. *
|
||||
> 打印 内容=mid-m5-fail
|
||||
@@ -12,8 +12,8 @@ Moments are maps `{unix, zone, iso}`. Parse HTTPS URLs and round-trip query stri
|
||||
# main
|
||||
|
||||
**epoch = > dt.from_unix unix=0 zone="Asia/Shanghai"**
|
||||
> print text=`epoch`[^iso]
|
||||
> print text=[iso](`epoch`)
|
||||
|
||||
**u = > url.parse text="https://example.com/path?q=1#top"**
|
||||
> print text=`u`[^host]
|
||||
> print text=`u`[^query]
|
||||
> print text=[host](`u`)
|
||||
> print text=[query](`u`)
|
||||
@@ -12,8 +12,8 @@ description: 日历时刻 + URL/查询串(Mid2 M7)
|
||||
# main
|
||||
|
||||
**epoch = > 日时.自戳 秒=0 区="Asia/Shanghai"**
|
||||
> print text=`epoch`[^iso]
|
||||
> print text=[iso](`epoch`)
|
||||
|
||||
**u = > 址.解析 内容="https://example.com/path?q=1"**
|
||||
> print text=`u`[^host]
|
||||
> print text=`u`[^query]
|
||||
> print text=[host](`u`)
|
||||
> print text=[query](`u`)
|
||||
@@ -13,9 +13,9 @@ Parse a TOML subset for tools, escape HTML before assembly, encode with base32.
|
||||
# main
|
||||
|
||||
**cfg = > toml.parse text="app = \"demo\"\n[server]\nport = 8080\n"**
|
||||
> print text=`cfg`[^app]
|
||||
**srv = `cfg`[^server]**
|
||||
> print text=`srv`[^port]
|
||||
> print text=[app](`cfg`)
|
||||
**srv = [server](`cfg`)**
|
||||
> print text=[port](`srv`)
|
||||
|
||||
**safe = > html.escape text="<tag>"**
|
||||
> print text=`safe`
|
||||
|
||||
@@ -11,7 +11,7 @@ description: TOML 配置 + HTML 转义 + base32(Mid2 M8)
|
||||
# main
|
||||
|
||||
**cfg = > 配置.解析 内容="app = \"演示\"\n"**
|
||||
> print text=`cfg`[^app]
|
||||
> print text=[app](`cfg`)
|
||||
|
||||
**safe = > 超.转义 内容="<tag>"**
|
||||
> print text=`safe`
|
||||
|
||||
@@ -15,7 +15,7 @@ import fs:lib/fs.mq.md
|
||||
> fs.write_text path="m9-demo/readme.txt" text="ok"
|
||||
|
||||
**st = > fs.stat path="m9-demo/readme.txt"**
|
||||
> print text=`st`[^size]
|
||||
> print text=[size](`st`)
|
||||
|
||||
**w = > fs.walk path="m9-demo"**
|
||||
**n = > len `w`**
|
||||
|
||||
@@ -13,7 +13,7 @@ description: 递归目录、遍历与元数据(Mid2 M9)
|
||||
> 文件.写文本 路径="m9-演示/说明.txt" 内容="好"
|
||||
|
||||
**st = > 文件.状态 路径="m9-演示/说明.txt"**
|
||||
> print text=`st`[^size]
|
||||
> print text=[size](`st`)
|
||||
|
||||
**w = > 文件.遍历 路径="m9-演示"**
|
||||
**n = > 长度 `w`**
|
||||
|
||||
Reference in new issue
Block a user