Files
marqdo/tests/lib/subtask-spawn.mq.md
T
cflmyandCursor a23fdedfa2 Implement table semantic T0-T4: map/records/footnote get
- 1-col table stays a List; >=2-col becomes a column-oriented Map
  (1 data row -> scalar values, >=2 -> Map of Lists).
- First header @ / 行 / row opts into row-oriented List of Maps
  (marker column excluded); missing field cols is a diagnostic.
- Footnote index: `xs`[^1] (1-based list), `m`[^key] (map key), chained.
  Errors for [^0], out-of-range, missing key, duplicate headers.
- foreach walks list items or map keys; Map values now display as {k: v}.
- Sync both tree and bytecode backends; new gold + error fixtures, docs
  (markdown-mapping, roadmap, skill, public), and public 07/08 pages.
- Fix subtask-spawn fixture return value to child_ok (child-ok parses as
  subtraction).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-10 09:50:21 +08:00

687 B


title: subtask spawn join

lib/subtask.mq.md lib/json.mq.md


main

*id = > subtask.spawn path=subtask-child.mq.md quiet=False *

*waited = > subtask.wait id=id * *code = > json.get value=waited key=code * *val = > json.get value=waited key=value *

  1. code == 0

print text=val

print text=fail

print text=done

*id2 = > subtask.spawn path=subtask-child.mq.md *

*waited2 = > subtask.wait id=id2 * *code2 = > json.get value=waited2 key=code * *val2 = > json.get value=waited2 key=value *

  1. code2 == 0
  2. val2 == "child_ok" > print text=quiet-ok
> print text=quiet-bad-value

print text=quiet-fail