feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bfb10d172b
commit
b5c07385e9
324 files changed
+4572
-4339
No files matched your search
@@ -7,7 +7,7 @@ description: `+` arms; a lone `*` arm is else
|
||||
|
||||
Italic lines are statements. Branches use `+`; a head that is only `*` is the else arm.
|
||||
|
||||
*`x` = 0*
|
||||
**`x` = 0**
|
||||
|
||||
1. `x` > 0
|
||||
> print text=positive
|
||||
|
||||
@@ -7,7 +7,7 @@ description: `+` 各臂;单独的 `*` 臂为否则
|
||||
|
||||
斜体行是语句。分支用 `+`;表头仅为 `*` 的是否则臂。
|
||||
|
||||
*`x` = 0*
|
||||
**`x` = 0**
|
||||
|
||||
1. `x` > 0
|
||||
> 打印 内容=正数
|
||||
|
||||
@@ -9,11 +9,11 @@ Inside a function body, `-` starts a loop (not a parameter).
|
||||
|
||||
Countdown:
|
||||
|
||||
*`n` = 3*
|
||||
**`n` = 3**
|
||||
|
||||
- `n` > 0
|
||||
> print text=`n`
|
||||
*`n` = `n` - 1*
|
||||
**`n` = `n` - 1**
|
||||
|
||||
Walk a table (tables are collections):
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ description: 条件循环与表遍历
|
||||
|
||||
倒数:
|
||||
|
||||
*`n` = 3*
|
||||
**`n` = 3**
|
||||
|
||||
- `n` > 0
|
||||
> 打印 内容=`n`
|
||||
*`n` = `n` - 1*
|
||||
**`n` = `n` - 1**
|
||||
|
||||
遍历表(表即集合):
|
||||
|
||||
|
||||
@@ -13,10 +13,10 @@ A multi-column table with one data row is a map. Read values with footnote keys.
|
||||
|-------|----------|
|
||||
| fruit | vegetable |
|
||||
|
||||
*`k` = `kinds`[^apple] *
|
||||
**`k` = `kinds`[^apple] **
|
||||
|
||||
> print text=`k`
|
||||
|
||||
*`k` = `kinds`[^cucumber] *
|
||||
**`k` = `kinds`[^cucumber] **
|
||||
|
||||
> print text=`k`
|
||||
@@ -13,10 +13,10 @@ description: 多列表是字典;脚注按键取元
|
||||
|------|------|
|
||||
| 水果 | 蔬菜 |
|
||||
|
||||
*`种` = `分类`[^苹果] *
|
||||
**`种` = `分类`[^苹果] **
|
||||
|
||||
> 打印 内容=`种`
|
||||
|
||||
*`种` = `分类`[^黄瓜] *
|
||||
**`种` = `分类`[^黄瓜] **
|
||||
|
||||
> 打印 内容=`种`
|
||||
@@ -14,10 +14,10 @@ When the first header is `@` or `row`, each data row is a map (marker column is
|
||||
| 1 | apple | 2 |
|
||||
| 2 | pear | 3 |
|
||||
|
||||
*`n` = `orders`[^1][^name] *
|
||||
**`n` = `orders`[^1][^name] **
|
||||
|
||||
> print text=`n`
|
||||
|
||||
*`q` = `orders`[^2][^qty] *
|
||||
**`q` = `orders`[^2][^qty] **
|
||||
|
||||
> print text=`q`
|
||||
@@ -14,10 +14,10 @@ description: 首列表头「行」→ 每行一个字典
|
||||
| 1 | 苹果 | 2 |
|
||||
| 2 | 梨 | 3 |
|
||||
|
||||
*`名` = `订单`[^1][^品名] *
|
||||
**`名` = `订单`[^1][^品名] **
|
||||
|
||||
> 打印 内容=`名`
|
||||
|
||||
*`量` = `订单`[^2][^数量] *
|
||||
**`量` = `订单`[^2][^数量] **
|
||||
|
||||
> 打印 内容=`量`
|
||||
@@ -8,22 +8,22 @@ description: "# Child = > Parent; methods walk the base chain"
|
||||
## hello
|
||||
+ `who`
|
||||
|
||||
*`msg` = "Hello, `who`!"*
|
||||
**`msg`**
|
||||
**`msg` = "Hello, `who`!"**
|
||||
*`msg`*
|
||||
|
||||
# Loud = > Greeter
|
||||
|
||||
## hello
|
||||
+ `who`
|
||||
|
||||
*`msg` = "HELLO, `who`!"*
|
||||
**`msg`**
|
||||
**`msg` = "HELLO, `who`!"**
|
||||
*`msg`*
|
||||
|
||||
# main
|
||||
|
||||
*`g` = > Greeter*
|
||||
*`m` = > `g`.hello who="world"*
|
||||
**`g` = > Greeter**
|
||||
**`m` = > `g`.hello who="world"**
|
||||
> print text=`m`
|
||||
*`l` = > Loud*
|
||||
*`m2` = > `l`.hello who="world"*
|
||||
**`l` = > Loud**
|
||||
**`m2` = > `l`.hello who="world"**
|
||||
> print text=`m2`
|
||||
@@ -8,22 +8,22 @@ description: "# 子类 = > 父类;方法沿基类链查找"
|
||||
## 你好
|
||||
+ `谁`
|
||||
|
||||
*`msg` = "你好,`谁`!"*
|
||||
**`msg`**
|
||||
**`msg` = "你好,`谁`!"**
|
||||
*`msg`*
|
||||
|
||||
# 大声 = > 问候者
|
||||
|
||||
## 你好
|
||||
+ `谁`
|
||||
|
||||
*`msg` = "你好,`谁`!!!"*
|
||||
**`msg`**
|
||||
**`msg` = "你好,`谁`!!!"**
|
||||
*`msg`*
|
||||
|
||||
# main
|
||||
|
||||
*`g` = > 问候者*
|
||||
*`m` = > `g`.你好 谁="世界"*
|
||||
**`g` = > 问候者**
|
||||
**`m` = > `g`.你好 谁="世界"**
|
||||
> 打印 内容=`m`
|
||||
*`l` = > 大声*
|
||||
*`m2` = > `l`.你好 谁="世界"*
|
||||
**`l` = > 大声**
|
||||
**`m2` = > `l`.你好 谁="世界"**
|
||||
> 打印 内容=`m2`
|
||||
@@ -10,7 +10,7 @@ In the YAML header, `import utils:utils.mq.md` imports a sibling module and bind
|
||||
|
||||
Bind a return value, print it, then call greet:
|
||||
|
||||
*`y` = > utils.add_one n=41*
|
||||
**`y` = > utils.add_one n=41**
|
||||
|
||||
> print text=`y`
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ description: frontmatter 导入 bind:路径.mq.md
|
||||
|
||||
绑定返回值、打印,再调用问候:
|
||||
|
||||
*`y` = > 工具.加一 n=41*
|
||||
**`y` = > 工具.加一 n=41**
|
||||
|
||||
> 打印 内容=`y`
|
||||
|
||||
|
||||
Reference in new issue
Block a user