feat: migrate View 0.3.0 to marqdo 3.0.0-rc.4 contracts
ci/woodpecker/push/woodpecker Pipeline was successful

Replace the retired rc.2 Analysis v2/Trace v2/Execution Events v1 stack with the
single current contract family:

- Analysis v3 (ADR-0069 public boundary): one check --emit artifact carries the
  exact source, Markdown AST, heading scopes (heading_span + complete span),
  anchors, state-bearing references, calls, resources and diagnostics; the old
  revision-3 shape is rejected with a rebuild hint.
- Observation v1: one run/call --output jsonl stream (+ atomic
  --observation-file snapshot) decoded by one decoder and projected into the
  reader/SSE/export layers; stale/malformed/truncated/incomplete never render
  as success.
- CLI Tool revision 1: requires {api_revision:1, analysis:3, observation:1},
  product range >=3.0.0-rc.3,<4.0.0, only MARQDO_BIN and
  MARQDO_API_REVISION are consumed.
- Remove compatibility branches, retired flags/env vars and duplicate decoders;
  re-record Analysis v3 and Observation v1 fixtures; rewrite contract,
  integration and security tests (173 passing locally).
- Add check-no-legacy/check-docs/check-observation gates, rc.4 pins in the
  CI pipelines, 0.3.0 Tool bundle and evidence manifest support.

See issues #4, #5 and #6; acceptance baseline is CLI source
452e9a32bd9e40dba427d4180691c58bab74449e, archive
9c3f166b5e5b8840d39d10019074e4e1c42432fc23e26c69670e64fdcf4e15d8.
This commit is contained in:
Marqdo View committed 2026-11-25 22:12:51 +08:00
1 parent 7b34199c96
commit 340ecb035f
108 files changed
+13928 -6461

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ binary, not hand-written:
Command shape used for every golden:
```bash
"$MARQDO_BIN" check <example> --emit tests/golden/analysis-v2/<name>.json
"$MARQDO_BIN" check <example> --emit tests/golden/analysis-v3/<name>.json
```
| Golden | Input |
-278
View File
@@ -1,278 +0,0 @@
{
"diagnostics": [],
"modules": [
{
"calls": [],
"functions": [
{
"body": [
{
"arms": [
{
"body": [
{
"kind": "assign",
"span": {
"end": 422,
"start": 406
},
"target": "result",
"value": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 417,
"start": 416
}
},
"op": "mul",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "2"
},
"span": {
"end": 421,
"start": 416
}
}
},
{
"kind": "return",
"span": {
"end": 439,
"start": 424
},
"value": {
"kind": "variable",
"name": "result",
"span": {
"end": 438,
"start": 432
}
}
}
],
"condition": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 398,
"start": 397
}
},
"op": "gt",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
},
"span": {
"end": 402,
"start": 397
}
},
"condition_span": {
"end": 404,
"start": 392
},
"span": {
"end": 404,
"start": 392
}
},
{
"body": [
{
"kind": "return",
"span": {
"end": 461,
"start": 451
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
}
}
],
"condition": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "bool",
"value": true
},
"condition_span": {
"end": 404,
"start": 392
},
"span": {
"end": 404,
"start": 392
}
}
],
"kind": "branch",
"span": {
"end": 404,
"start": 392
}
}
],
"effects": [
"unknown"
],
"heading_span": {
"end": 259,
"start": 246
},
"id": "root:mixed-modes@0.1.0::index.mq.md::演示.main",
"local_name": "main",
"namespace": "演示",
"signature": {
"kind": "explicit",
"params": [
{
"default": null,
"name": "n",
"required": true,
"span": {
"end": 274,
"start": 268
},
"type": "Int"
}
]
},
"span": {
"end": 470,
"start": 246
},
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main"
}
],
"id": "root:mixed-modes@0.1.0::index.mq.md",
"imports": [],
"package_instance_id": "root:mixed-modes@0.1.0",
"references": [],
"relative_path": "index.mq.md",
"resources": [],
"source_digest": "c5fed57a716e06a29b669c334d475ec03bf08442e27983451ec8dd791dc999ea",
"units": [
{
"function": null,
"id": "root:mixed-modes@0.1.0::index.mq.md#",
"kind": "root",
"level": 0,
"name": "",
"span": {
"end": 470,
"start": 0
}
},
{
"function": null,
"id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记",
"kind": "namespace",
"level": 1,
"name": "计算笔记",
"span": {
"end": 25,
"start": 0
}
},
{
"function": null,
"id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记/算法说明",
"kind": "knowledge",
"level": 2,
"name": "算法说明",
"span": {
"end": 149,
"start": 123
}
},
{
"function": null,
"id": "root:mixed-modes@0.1.0::index.mq.md#演示",
"kind": "namespace",
"level": 1,
"name": "演示",
"span": {
"end": 244,
"start": 230
}
},
{
"function": "root:mixed-modes@0.1.0::index.mq.md::演示.main",
"id": "root:mixed-modes@0.1.0::index.mq.md#演示/main",
"kind": "function",
"level": 2,
"name": "main",
"span": {
"end": 259,
"start": 246
}
},
{
"function": null,
"id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/用法",
"kind": "section",
"level": 3,
"name": "用法",
"span": {
"end": 300,
"start": 279
}
},
{
"function": "root:mixed-modes@0.1.0::index.mq.md::演示.main",
"id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/计算",
"kind": "section",
"level": 3,
"name": "计算",
"span": {
"end": 390,
"start": 374
}
}
]
}
],
"producer": {
"markdown_profile": "marqdo.md.v1",
"name": "marqdo",
"version": "3.0.0-beta.1"
},
"project": {
"identity_kind": "manifest",
"lock_digest": "",
"root_id": "root:mixed-modes@0.1.0",
"stdlib": {
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"version": "0.1.0"
}
},
"schema": "marqdo.analysis",
"schema_version": 2
}
-108
View File
@@ -1,108 +0,0 @@
{
"diagnostics": [],
"modules": [
{
"calls": [],
"functions": [],
"id": "root:tables-math@0.1.0::index.mq.md",
"imports": [],
"package_instance_id": "root:tables-math@0.1.0",
"references": [
{
"source": "root:tables-math@0.1.0::index.mq.md",
"span": {
"end": 403,
"start": 354
},
"state": "external",
"target_module": null,
"target_unit": null,
"url": "https://github.com/cflmy/marqdo-cli"
}
],
"relative_path": "index.mq.md",
"resources": [
{
"content_digest": "2820951a377c18ce3e89093ca7c31c204b1196a7e571781c6080f8207524a8dc",
"display": false,
"id": "root:tables-math@0.1.0::index.mq.md#resource:formula-1",
"kind": "formula",
"language": null,
"module_id": "root:tables-math@0.1.0::index.mq.md",
"span": {
"end": 164,
"start": 154
},
"unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源"
},
{
"content_digest": "8b1e8a7ed159e8223af79e768681907870ae7143f0b16001091377f9ff018db2",
"display": true,
"id": "root:tables-math@0.1.0::index.mq.md#resource:formula-2",
"kind": "formula",
"language": null,
"module_id": "root:tables-math@0.1.0::index.mq.md",
"span": {
"end": 222,
"start": 181
},
"unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源"
},
{
"content_digest": "a0d49e456637468d7f594f4e2bb513321875855c1fe85d28e0ca62f1e9180d15",
"id": "root:tables-math@0.1.0::index.mq.md#resource:code-1",
"kind": "code",
"language": "python",
"module_id": "root:tables-math@0.1.0::index.mq.md",
"span": {
"end": 280,
"start": 224
},
"unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源"
}
],
"source_digest": "66ce180252d201ff0f3f831d47f7a58d7f6804cb9655898cc80ef6d2262f1ce6",
"units": [
{
"function": null,
"id": "root:tables-math@0.1.0::index.mq.md#",
"kind": "root",
"level": 0,
"name": "",
"span": {
"end": 406,
"start": 0
}
},
{
"function": null,
"id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源",
"kind": "namespace",
"level": 1,
"name": "表格、公式与惰性资源",
"span": {
"end": 43,
"start": 0
}
}
]
}
],
"producer": {
"markdown_profile": "marqdo.md.v1",
"name": "marqdo",
"version": "3.0.0-beta.1"
},
"project": {
"identity_kind": "manifest",
"lock_digest": "",
"root_id": "root:tables-math@0.1.0",
"stdlib": {
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"version": "0.1.0"
}
},
"schema": "marqdo.analysis",
"schema_version": 2
}
@@ -1,212 +0,0 @@
{
"diagnostics": [],
"modules": [
{
"calls": [],
"functions": [
{
"body": [
{
"arms": [
{
"body": [
{
"kind": "return",
"span": {
"end": 148,
"start": 138
},
"value": {
"kind": "variable",
"name": "n",
"span": {
"end": 147,
"start": 146
}
}
}
],
"condition": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 128,
"start": 127
}
},
"op": "gt",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
},
"span": {
"end": 132,
"start": 127
}
},
"condition_span": {
"end": 134,
"start": 122
},
"span": {
"end": 134,
"start": 122
}
},
{
"body": [
{
"kind": "return",
"span": {
"end": 174,
"start": 164
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
}
}
],
"condition": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "bool",
"value": true
},
"condition_span": {
"end": 134,
"start": 122
},
"span": {
"end": 134,
"start": 122
}
}
],
"kind": "branch",
"span": {
"end": 134,
"start": 122
}
}
],
"effects": [
"unknown"
],
"heading_span": {
"end": 98,
"start": 85
},
"id": "root:unicode-spans@0.1.0::crlf.mq.md::演示.main",
"local_name": "main",
"namespace": "演示",
"signature": {
"kind": "explicit",
"params": [
{
"default": null,
"name": "n",
"required": true,
"span": {
"end": 115,
"start": 109
},
"type": "Int"
}
]
},
"span": {
"end": 185,
"start": 85
},
"unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#演示/main"
}
],
"id": "root:unicode-spans@0.1.0::crlf.mq.md",
"imports": [],
"package_instance_id": "root:unicode-spans@0.1.0",
"references": [],
"relative_path": "crlf.mq.md",
"resources": [],
"source_digest": "3d6c99d8e1666b14cc51e6774a4cf514a3a252f3b2f9f541c7cde4a090551b1f",
"units": [
{
"function": null,
"id": "root:unicode-spans@0.1.0::crlf.mq.md#",
"kind": "root",
"level": 0,
"name": "",
"span": {
"end": 185,
"start": 0
}
},
{
"function": null,
"id": "root:unicode-spans@0.1.0::crlf.mq.md#CRLF 文档",
"kind": "namespace",
"level": 1,
"name": "CRLF 文档",
"span": {
"end": 24,
"start": 0
}
},
{
"function": null,
"id": "root:unicode-spans@0.1.0::crlf.mq.md#演示",
"kind": "namespace",
"level": 1,
"name": "演示",
"span": {
"end": 81,
"start": 67
}
},
{
"function": "root:unicode-spans@0.1.0::crlf.mq.md::演示.main",
"id": "root:unicode-spans@0.1.0::crlf.mq.md#演示/main",
"kind": "function",
"level": 2,
"name": "main",
"span": {
"end": 98,
"start": 85
}
}
]
}
],
"producer": {
"markdown_profile": "marqdo.md.v1",
"name": "marqdo",
"version": "3.0.0-beta.1"
},
"project": {
"identity_kind": "manifest",
"lock_digest": "",
"root_id": "root:unicode-spans@0.1.0",
"stdlib": {
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"version": "0.1.0"
}
},
"schema": "marqdo.analysis",
"schema_version": 2
}
-213
View File
@@ -1,213 +0,0 @@
{
"diagnostics": [],
"modules": [
{
"calls": [],
"functions": [
{
"body": [
{
"arms": [
{
"body": [
{
"kind": "return",
"span": {
"end": 271,
"start": 261
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "1"
}
}
],
"condition": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 253,
"start": 252
}
},
"op": "gt",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
},
"span": {
"end": 257,
"start": 252
}
},
"condition_span": {
"end": 259,
"start": 247
},
"span": {
"end": 259,
"start": 247
}
},
{
"body": [
{
"kind": "return",
"span": {
"end": 293,
"start": 283
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "1"
}
}
],
"condition": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "bool",
"value": true
},
"condition_span": {
"end": 259,
"start": 247
},
"span": {
"end": 259,
"start": 247
}
}
],
"kind": "branch",
"span": {
"end": 259,
"start": 247
}
}
],
"effects": [
"unknown"
],
"heading_span": {
"end": 227,
"start": 214
},
"id": "root:unicode-spans@0.1.0::index.mq.md::演示.main",
"local_name": "main",
"namespace": "演示",
"signature": {
"kind": "explicit",
"params": [
{
"default": null,
"name": "n",
"required": true,
"span": {
"end": 242,
"start": 236
},
"type": "Int"
}
]
},
"span": {
"end": 302,
"start": 214
},
"unit_id": "root:unicode-spans@0.1.0::index.mq.md#演示/main"
}
],
"id": "root:unicode-spans@0.1.0::index.mq.md",
"imports": [],
"package_instance_id": "root:unicode-spans@0.1.0",
"references": [],
"relative_path": "index.mq.md",
"resources": [],
"source_digest": "b4f8dd12f18a984af129974bc4dd153e97df99cc262bcafb2ae1187b6c5ce7d0",
"units": [
{
"function": null,
"id": "root:unicode-spans@0.1.0::index.mq.md#",
"kind": "root",
"level": 0,
"name": "",
"span": {
"end": 302,
"start": 0
}
},
{
"function": null,
"id": "root:unicode-spans@0.1.0::index.mq.md#中文 🙂 标题",
"kind": "namespace",
"level": 1,
"name": "中文 🙂 标题",
"span": {
"end": 31,
"start": 0
}
},
{
"function": null,
"id": "root:unicode-spans@0.1.0::index.mq.md#演示",
"kind": "namespace",
"level": 1,
"name": "演示",
"span": {
"end": 212,
"start": 198
}
},
{
"function": "root:unicode-spans@0.1.0::index.mq.md::演示.main",
"id": "root:unicode-spans@0.1.0::index.mq.md#演示/main",
"kind": "function",
"level": 2,
"name": "main",
"span": {
"end": 227,
"start": 214
}
}
]
}
],
"producer": {
"markdown_profile": "marqdo.md.v1",
"name": "marqdo",
"version": "3.0.0-beta.1"
},
"project": {
"identity_kind": "manifest",
"lock_digest": "",
"root_id": "root:unicode-spans@0.1.0",
"stdlib": {
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"version": "0.1.0"
}
},
"schema": "marqdo.analysis",
"schema_version": 2
}
-69
View File
@@ -1,69 +0,0 @@
{
"diagnostics": [],
"modules": [
{
"calls": [],
"functions": [],
"id": "root:welcome-demo@0.1.0::00-welcome.mq.md",
"imports": [],
"package_instance_id": "root:welcome-demo@0.1.0",
"references": [
{
"source": "root:welcome-demo@0.1.0::00-welcome.mq.md",
"span": {
"end": 536,
"start": 507
},
"state": "resolved",
"target_module": "root:welcome-demo@0.1.0::guide.mq.md",
"target_unit": null,
"url": "./guide.mq.md"
}
],
"relative_path": "00-welcome.mq.md",
"resources": [],
"source_digest": "879215bf0dc432b78924800a08eac37d353a9694652c5542294f4ce7fe6da173",
"units": [
{
"function": null,
"id": "root:welcome-demo@0.1.0::00-welcome.mq.md#",
"kind": "root",
"level": 0,
"name": "",
"span": {
"end": 659,
"start": 0
}
},
{
"function": null,
"id": "root:welcome-demo@0.1.0::00-welcome.mq.md#欢迎来到 Marqdo",
"kind": "namespace",
"level": 1,
"name": "欢迎来到 Marqdo",
"span": {
"end": 32,
"start": 0
}
}
]
}
],
"producer": {
"markdown_profile": "marqdo.md.v1",
"name": "marqdo",
"version": "3.0.0-beta.1"
},
"project": {
"identity_kind": "manifest",
"lock_digest": "",
"root_id": "root:welcome-demo@0.1.0",
"stdlib": {
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"version": "0.1.0"
}
},
"schema": "marqdo.analysis",
"schema_version": 2
}
@@ -1,79 +1,591 @@
{
"diagnostics": [],
"schema": "marqdo.analysis",
"schema_version": 3,
"producer": {
"name": "marqdo",
"version": "3.0.0-rc.4",
"markdown_profile": "marqdo.md.v1"
},
"project": {
"root_id": "root:control-flow@0.1.0",
"identity_kind": "manifest",
"entry_module_id": "root:control-flow@0.1.0::index.mq.md",
"lock_digest": "",
"manifest_digest": "sha256:a317c418b2b86e74c23f5effcea3e7e4bff0d6dac4043beca78598bc8c90768d",
"stdlib": {
"version": "0.1.0",
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713"
},
"extensions": []
},
"modules": [
{
"calls": [
"id": "root:control-flow@0.1.0::index.mq.md",
"package_instance_id": "root:control-flow@0.1.0",
"relative_path": "index.mq.md",
"source_digest": "127922e228bbc7931aa8241ff69ee7df3cbc8bbaaaead143b67842a527818854",
"source": "# @knowledge 控制流演示\n\n下面的函数可以在 `pure` 模式显式运行并产生真实 Trace。示例把 ASCII 数字和换行写入标准输出资源。\n\n# @exec 演示\n\n## @exec main\n\n`x = 0`\n\n`buffer = memory.new(1, 1)`\n\n`buffer[1] = 10`\n\n`stdout = resource.open(\"stdio\", \"stdout\", [\"write\"])`\n\n**while x < 3**\n\n**if x > 1**\n\n`buffer[0] = 48 + x`\n\n**else**\n\n`buffer[0] = 48`\n\n**end**\n\n`resource.write(stdout, buffer, 0, 2)`\n\n**x = x + 1**\n\n**end**\n\n`resource.close(stdout)`\n\n`return 3`\n",
"document": {
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge 控制流演示",
"span": {
"end": 28,
"start": 2
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 28,
"start": 0
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "下面的函数可以在 ",
"span": {
"end": 55,
"start": 30
}
},
{
"children": [],
"kind": "code",
"literal": "pure",
"span": {
"end": 61,
"start": 55
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " 模式显式运行并产生真实 Trace。示例把 ASCII 数字和换行写入标准输出资源。",
"span": {
"end": 162,
"start": 61
}
}
],
"kind": "paragraph",
"span": {
"end": 162,
"start": 30
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec 演示",
"span": {
"end": 178,
"start": 166
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 178,
"start": 164
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec main",
"span": {
"end": 193,
"start": 183
}
}
],
"kind": "heading",
"level": 2,
"setext": false,
"span": {
"end": 193,
"start": 180
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "x = 0",
"span": {
"end": 202,
"start": 195
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 202,
"start": 195
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "buffer = memory.new(1, 1)",
"span": {
"end": 231,
"start": 204
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 231,
"start": 204
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "buffer[1] = 10",
"span": {
"end": 249,
"start": 233
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 249,
"start": 233
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "stdout = resource.open(\"stdio\", \"stdout\", [\"write\"])",
"span": {
"end": 305,
"start": 251
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 305,
"start": 251
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "while x < 3",
"span": {
"end": 320,
"start": 309
}
}
],
"kind": "strong",
"span": {
"end": 322,
"start": 307
}
}
],
"kind": "paragraph",
"span": {
"end": 322,
"start": 307
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "if x > 1",
"span": {
"end": 334,
"start": 326
}
}
],
"kind": "strong",
"span": {
"end": 336,
"start": 324
}
}
],
"kind": "paragraph",
"span": {
"end": 336,
"start": 324
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "buffer[0] = 48 + x",
"span": {
"end": 358,
"start": 338
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 358,
"start": 338
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "else",
"span": {
"end": 366,
"start": 362
}
}
],
"kind": "strong",
"span": {
"end": 368,
"start": 360
}
}
],
"kind": "paragraph",
"span": {
"end": 368,
"start": 360
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "buffer[0] = 48",
"span": {
"end": 386,
"start": 370
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 386,
"start": 370
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "end",
"span": {
"end": 393,
"start": 390
}
}
],
"kind": "strong",
"span": {
"end": 395,
"start": 388
}
}
],
"kind": "paragraph",
"span": {
"end": 395,
"start": 388
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "resource.write(stdout, buffer, 0, 2)",
"span": {
"end": 435,
"start": 397
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 435,
"start": 397
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "x = x + 1",
"span": {
"end": 448,
"start": 439
}
}
],
"kind": "strong",
"span": {
"end": 450,
"start": 437
}
}
],
"kind": "paragraph",
"span": {
"end": 450,
"start": 437
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "end",
"span": {
"end": 457,
"start": 454
}
}
],
"kind": "strong",
"span": {
"end": 459,
"start": 452
}
}
],
"kind": "paragraph",
"span": {
"end": 459,
"start": 452
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "resource.close(stdout)",
"span": {
"end": 485,
"start": 461
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 485,
"start": 461
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "return 3",
"span": {
"end": 497,
"start": 487
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 497,
"start": 487
}
}
],
"kind": "document",
"span": {
"end": 498,
"start": 0
}
},
"units": [
{
"callee": {
"base": {
"kind": "ident",
"name": "memory"
},
"field": "new",
"kind": "member"
},
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"id": "root:control-flow@0.1.0::index.mq.md#",
"path": [],
"parent_id": null,
"kind": "root",
"name": "",
"level": 0,
"mode": "knowledge",
"mode_origin": "default",
"mode_source_unit_id": "root:control-flow@0.1.0::index.mq.md#",
"heading_span": null,
"span": {
"end": 230,
"start": 214
"start": 0,
"end": 498
},
"state": "builtin",
"target": "memory.new"
"function": null
},
{
"callee": {
"base": {
"kind": "ident",
"name": "resource"
},
"field": "open",
"kind": "member"
"id": "root:control-flow@0.1.0::index.mq.md#控制流演示",
"path": [
"控制流演示"
],
"parent_id": "root:control-flow@0.1.0::index.mq.md#",
"kind": "namespace",
"name": "控制流演示",
"level": 1,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:control-flow@0.1.0::index.mq.md#控制流演示",
"heading_span": {
"start": 0,
"end": 28
},
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"span": {
"end": 304,
"start": 261
"start": 0,
"end": 164
},
"state": "builtin",
"target": "resource.open"
"function": null
},
{
"callee": {
"base": {
"kind": "ident",
"name": "resource"
},
"field": "write",
"kind": "member"
"id": "root:control-flow@0.1.0::index.mq.md#演示",
"path": [
"演示"
],
"parent_id": "root:control-flow@0.1.0::index.mq.md#",
"kind": "namespace",
"name": "演示",
"level": 1,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:control-flow@0.1.0::index.mq.md#演示",
"heading_span": {
"start": 164,
"end": 178
},
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"span": {
"end": 434,
"start": 398
"start": 164,
"end": 498
},
"state": "builtin",
"target": "resource.write"
"function": null
},
{
"callee": {
"base": {
"kind": "ident",
"name": "resource"
},
"field": "close",
"kind": "member"
"id": "root:control-flow@0.1.0::index.mq.md#演示/main",
"path": [
"演示",
"main"
],
"parent_id": "root:control-flow@0.1.0::index.mq.md#演示",
"kind": "function",
"name": "main",
"level": 2,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:control-flow@0.1.0::index.mq.md#演示/main",
"heading_span": {
"start": 180,
"end": 193
},
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"span": {
"end": 484,
"start": 462
"start": 180,
"end": 498
},
"state": "builtin",
"target": "resource.close"
"function": "root:control-flow@0.1.0::index.mq.md::演示.main"
}
],
"anchors": [
{
"anchor": "main",
"unit_id": "root:control-flow@0.1.0::index.mq.md#演示/main"
},
{
"anchor": "控制流演示",
"unit_id": "root:control-flow@0.1.0::index.mq.md#控制流演示"
},
{
"anchor": "演示",
"unit_id": "root:control-flow@0.1.0::index.mq.md#演示"
}
],
"functions": [
{
"id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"unit_id": "root:control-flow@0.1.0::index.mq.md#演示/main",
"local_name": "main",
"namespace": "演示",
"span": {
"start": 180,
"end": 497
},
"heading_span": {
"start": 180,
"end": 193
},
"signature": {
"kind": "inferred",
"params": []
},
"effects": [
"unknown"
],
"body": [
{
"kind": "assign",
@@ -437,12 +949,12 @@
"value": true
},
"condition_span": {
"end": 336,
"start": 324
"end": 368,
"start": 360
},
"span": {
"end": 336,
"start": 324
"end": 368,
"start": 360
}
}
],
@@ -678,94 +1190,95 @@
"value": "3"
}
}
],
"effects": [
"unknown"
],
"heading_span": {
"end": 193,
"start": 180
},
"id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"local_name": "main",
"namespace": "演示",
"signature": {
"kind": "inferred",
"params": []
},
"span": {
"end": 497,
"start": 180
},
"unit_id": "root:control-flow@0.1.0::index.mq.md#演示/main"
]
}
],
"id": "root:control-flow@0.1.0::index.mq.md",
"imports": [],
"package_instance_id": "root:control-flow@0.1.0",
"references": [],
"relative_path": "index.mq.md",
"resources": [],
"source_digest": "127922e228bbc7931aa8241ff69ee7df3cbc8bbaaaead143b67842a527818854",
"units": [
"calls": [
{
"function": null,
"id": "root:control-flow@0.1.0::index.mq.md#",
"kind": "root",
"level": 0,
"name": "",
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"span": {
"end": 497,
"start": 0
}
},
{
"function": null,
"id": "root:control-flow@0.1.0::index.mq.md#控制流演示",
"kind": "namespace",
"level": 1,
"name": "控制流演示",
"span": {
"end": 28,
"start": 0
}
},
{
"function": null,
"id": "root:control-flow@0.1.0::index.mq.md#演示",
"kind": "namespace",
"level": 1,
"name": "演示",
"span": {
"end": 178,
"start": 164
}
"start": 214,
"end": 230
},
"callee": {
"base": {
"kind": "ident",
"name": "memory"
},
"field": "new",
"kind": "member"
},
"state": "builtin",
"target": "memory.new",
"target_kind": "builtin",
"target_owner": null,
"reason": null
},
{
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"id": "root:control-flow@0.1.0::index.mq.md#演示/main",
"kind": "function",
"level": 2,
"name": "main",
"span": {
"end": 193,
"start": 180
}
"start": 261,
"end": 304
},
"callee": {
"base": {
"kind": "ident",
"name": "resource"
},
"field": "open",
"kind": "member"
},
"state": "builtin",
"target": "resource.open",
"target_kind": "builtin",
"target_owner": null,
"reason": null
},
{
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"span": {
"start": 398,
"end": 434
},
"callee": {
"base": {
"kind": "ident",
"name": "resource"
},
"field": "write",
"kind": "member"
},
"state": "builtin",
"target": "resource.write",
"target_kind": "builtin",
"target_owner": null,
"reason": null
},
{
"function": "root:control-flow@0.1.0::index.mq.md::演示.main",
"span": {
"start": 462,
"end": 484
},
"callee": {
"base": {
"kind": "ident",
"name": "resource"
},
"field": "close",
"kind": "member"
},
"state": "builtin",
"target": "resource.close",
"target_kind": "builtin",
"target_owner": null,
"reason": null
}
]
],
"resources": []
}
],
"producer": {
"markdown_profile": "marqdo.md.v1",
"name": "marqdo",
"version": "3.0.0-beta.1"
},
"project": {
"identity_kind": "manifest",
"lock_digest": "",
"root_id": "root:control-flow@0.1.0",
"stdlib": null
},
"schema": "marqdo.analysis",
"schema_version": 2
"diagnostics": []
}
+790
View File
@@ -0,0 +1,790 @@
{
"schema": "marqdo.analysis",
"schema_version": 3,
"producer": {
"name": "marqdo",
"version": "3.0.0-rc.4",
"markdown_profile": "marqdo.md.v1"
},
"project": {
"root_id": "root:mixed-modes@0.1.0",
"identity_kind": "manifest",
"entry_module_id": "root:mixed-modes@0.1.0::index.mq.md",
"lock_digest": "",
"manifest_digest": "sha256:b252a5e0d5519cfb5efe1ca7ebfe0660cc1919279fc4283cdebfb70028f5a984",
"stdlib": {
"version": "0.1.0",
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713"
},
"extensions": []
},
"modules": [
{
"id": "root:mixed-modes@0.1.0::index.mq.md",
"package_instance_id": "root:mixed-modes@0.1.0",
"relative_path": "index.mq.md",
"source_digest": "c5fed57a716e06a29b669c334d475ec03bf08442e27983451ec8dd791dc999ea",
"source": "# @knowledge 计算笔记\n\n这是一份关于简单运算的知识说明。**此处加粗是知识内容,不执行。**\n\n## @knowledge 算法说明\n\n下面描述算法的含义和适用范围;此处的 `n` 是惰性正文。\n\n# @exec 演示\n\n## @exec main\n\n`params(n: Int)`\n\n### @knowledge 用法\n\n调用方提供整数 `n`。这一小节不应该执行任何语句。\n\n### @exec 计算\n\n**if n > 0**\n\n`result = n * 2`\n\n*return result*\n\n**else**\n\n`return 0`\n\n**end**\n",
"document": {
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge 计算笔记",
"span": {
"end": 25,
"start": 2
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 25,
"start": 0
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "这是一份关于简单运算的知识说明。",
"span": {
"end": 75,
"start": 27
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "此处加粗是知识内容,不执行。",
"span": {
"end": 119,
"start": 77
}
}
],
"kind": "strong",
"span": {
"end": 121,
"start": 75
}
}
],
"kind": "paragraph",
"span": {
"end": 121,
"start": 27
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge 算法说明",
"span": {
"end": 149,
"start": 126
}
}
],
"kind": "heading",
"level": 2,
"setext": false,
"span": {
"end": 149,
"start": 123
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "下面描述算法的含义和适用范围;此处的 ",
"span": {
"end": 206,
"start": 151
}
},
{
"children": [],
"kind": "code",
"literal": "n",
"span": {
"end": 209,
"start": 206
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " 是惰性正文。",
"span": {
"end": 228,
"start": 209
}
}
],
"kind": "paragraph",
"span": {
"end": 228,
"start": 151
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec 演示",
"span": {
"end": 244,
"start": 232
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 244,
"start": 230
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec main",
"span": {
"end": 259,
"start": 249
}
}
],
"kind": "heading",
"level": 2,
"setext": false,
"span": {
"end": 259,
"start": 246
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "params(n: Int)",
"span": {
"end": 277,
"start": 261
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 277,
"start": 261
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge 用法",
"span": {
"end": 300,
"start": 283
}
}
],
"kind": "heading",
"level": 3,
"setext": false,
"span": {
"end": 300,
"start": 279
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "调用方提供整数 ",
"span": {
"end": 324,
"start": 302
}
},
{
"children": [],
"kind": "code",
"literal": "n",
"span": {
"end": 327,
"start": 324
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": "。这一小节不应该执行任何语句。",
"span": {
"end": 372,
"start": 327
}
}
],
"kind": "paragraph",
"span": {
"end": 372,
"start": 302
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec 计算",
"span": {
"end": 390,
"start": 378
}
}
],
"kind": "heading",
"level": 3,
"setext": false,
"span": {
"end": 390,
"start": 374
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "if n > 0",
"span": {
"end": 402,
"start": 394
}
}
],
"kind": "strong",
"span": {
"end": 404,
"start": 392
}
}
],
"kind": "paragraph",
"span": {
"end": 404,
"start": 392
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "result = n * 2",
"span": {
"end": 422,
"start": 406
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 422,
"start": 406
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "return result",
"span": {
"end": 438,
"start": 425
}
}
],
"kind": "emph",
"span": {
"end": 439,
"start": 424
}
}
],
"kind": "paragraph",
"span": {
"end": 439,
"start": 424
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "else",
"span": {
"end": 447,
"start": 443
}
}
],
"kind": "strong",
"span": {
"end": 449,
"start": 441
}
}
],
"kind": "paragraph",
"span": {
"end": 449,
"start": 441
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "return 0",
"span": {
"end": 461,
"start": 451
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 461,
"start": 451
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "end",
"span": {
"end": 468,
"start": 465
}
}
],
"kind": "strong",
"span": {
"end": 470,
"start": 463
}
}
],
"kind": "paragraph",
"span": {
"end": 470,
"start": 463
}
}
],
"kind": "document",
"span": {
"end": 471,
"start": 0
}
},
"units": [
{
"id": "root:mixed-modes@0.1.0::index.mq.md#",
"path": [],
"parent_id": null,
"kind": "root",
"name": "",
"level": 0,
"mode": "knowledge",
"mode_origin": "default",
"mode_source_unit_id": "root:mixed-modes@0.1.0::index.mq.md#",
"heading_span": null,
"span": {
"start": 0,
"end": 471
},
"function": null
},
{
"id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记",
"path": [
"计算笔记"
],
"parent_id": "root:mixed-modes@0.1.0::index.mq.md#",
"kind": "namespace",
"name": "计算笔记",
"level": 1,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记",
"heading_span": {
"start": 0,
"end": 25
},
"span": {
"start": 0,
"end": 230
},
"function": null
},
{
"id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记/算法说明",
"path": [
"计算笔记",
"算法说明"
],
"parent_id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记",
"kind": "knowledge",
"name": "算法说明",
"level": 2,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记/算法说明",
"heading_span": {
"start": 123,
"end": 149
},
"span": {
"start": 123,
"end": 230
},
"function": null
},
{
"id": "root:mixed-modes@0.1.0::index.mq.md#演示",
"path": [
"演示"
],
"parent_id": "root:mixed-modes@0.1.0::index.mq.md#",
"kind": "namespace",
"name": "演示",
"level": 1,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示",
"heading_span": {
"start": 230,
"end": 244
},
"span": {
"start": 230,
"end": 471
},
"function": null
},
{
"id": "root:mixed-modes@0.1.0::index.mq.md#演示/main",
"path": [
"演示",
"main"
],
"parent_id": "root:mixed-modes@0.1.0::index.mq.md#演示",
"kind": "function",
"name": "main",
"level": 2,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main",
"heading_span": {
"start": 246,
"end": 259
},
"span": {
"start": 246,
"end": 471
},
"function": "root:mixed-modes@0.1.0::index.mq.md::演示.main"
},
{
"id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/用法",
"path": [
"演示",
"main",
"用法"
],
"parent_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main",
"kind": "section",
"name": "用法",
"level": 3,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/用法",
"heading_span": {
"start": 279,
"end": 300
},
"span": {
"start": 279,
"end": 374
},
"function": null
},
{
"id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/计算",
"path": [
"演示",
"main",
"计算"
],
"parent_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main",
"kind": "section",
"name": "计算",
"level": 3,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/计算",
"heading_span": {
"start": 374,
"end": 390
},
"span": {
"start": 374,
"end": 471
},
"function": "root:mixed-modes@0.1.0::index.mq.md::演示.main"
}
],
"anchors": [
{
"anchor": "main",
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main"
},
{
"anchor": "演示",
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示"
},
{
"anchor": "用法",
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/用法"
},
{
"anchor": "算法说明",
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记/算法说明"
},
{
"anchor": "计算",
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main/计算"
},
{
"anchor": "计算笔记",
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#计算笔记"
}
],
"functions": [
{
"id": "root:mixed-modes@0.1.0::index.mq.md::演示.main",
"unit_id": "root:mixed-modes@0.1.0::index.mq.md#演示/main",
"local_name": "main",
"namespace": "演示",
"span": {
"start": 246,
"end": 470
},
"heading_span": {
"start": 246,
"end": 259
},
"signature": {
"kind": "explicit",
"params": [
{
"name": "n",
"required": true,
"type": "Int",
"default": null,
"span": {
"start": 268,
"end": 274
}
}
]
},
"effects": [
"unknown"
],
"body": [
{
"arms": [
{
"body": [
{
"kind": "assign",
"span": {
"end": 422,
"start": 406
},
"target": "result",
"value": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 417,
"start": 416
}
},
"op": "mul",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "2"
},
"span": {
"end": 421,
"start": 416
}
}
},
{
"kind": "return",
"span": {
"end": 439,
"start": 424
},
"value": {
"kind": "variable",
"name": "result",
"span": {
"end": 438,
"start": 432
}
}
}
],
"condition": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 398,
"start": 397
}
},
"op": "gt",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
},
"span": {
"end": 402,
"start": 397
}
},
"condition_span": {
"end": 404,
"start": 392
},
"span": {
"end": 404,
"start": 392
}
},
{
"body": [
{
"kind": "return",
"span": {
"end": 461,
"start": 451
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
}
}
],
"condition": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "bool",
"value": true
},
"condition_span": {
"end": 449,
"start": 441
},
"span": {
"end": 449,
"start": 441
}
}
],
"kind": "branch",
"span": {
"end": 404,
"start": 392
}
}
]
}
],
"imports": [],
"references": [],
"calls": [],
"resources": []
}
],
"diagnostics": []
}
+549
View File
@@ -0,0 +1,549 @@
{
"schema": "marqdo.analysis",
"schema_version": 3,
"producer": {
"name": "marqdo",
"version": "3.0.0-rc.4",
"markdown_profile": "marqdo.md.v1"
},
"project": {
"root_id": "root:tables-math@0.1.0",
"identity_kind": "manifest",
"entry_module_id": "root:tables-math@0.1.0::index.mq.md",
"lock_digest": "",
"manifest_digest": "sha256:5fd84c1306f43e9ed10a2db2b3fba6fdc67d960516bc94931ac594d21f034c05",
"stdlib": {
"version": "0.1.0",
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713"
},
"extensions": []
},
"modules": [
{
"id": "root:tables-math@0.1.0::index.mq.md",
"package_instance_id": "root:tables-math@0.1.0",
"relative_path": "index.mq.md",
"source_digest": "66ce180252d201ff0f3f831d47f7a58d7f6804cb9655898cc80ef6d2262f1ce6",
"source": "# @knowledge 表格、公式与惰性资源\n\n| 名称 | 值 | 说明 |\n| --- | ---: | --- |\n| 甲 | 1 | 第一行 |\n| 乙 | 2 | 第二行 |\n\n行内公式 $E = mc^2$;块公式:\n\n$$\n\\sum_{i=1}^{n} i = \\frac{n(n+1)}{2}\n$$\n\n```python\nprint(\"代码围栏永远是惰性资源\")\n```\n\n- [x] 任务列表可读\n- [ ] 不会触发任何执行\n\n外部链接:[Marqdo CLI](https://github.com/cflmy/marqdo-cli)。\n",
"document": {
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge 表格、公式与惰性资源",
"span": {
"end": 43,
"start": 2
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 43,
"start": 0
}
},
{
"alignments": [
"none",
"right",
"none"
],
"children": [
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "名称",
"span": {
"end": 53,
"start": 47
}
}
],
"kind": "table_cell",
"span": {
"end": 54,
"start": 46
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "值",
"span": {
"end": 59,
"start": 56
}
}
],
"kind": "table_cell",
"span": {
"end": 60,
"start": 55
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "说明",
"span": {
"end": 68,
"start": 62
}
}
],
"kind": "table_cell",
"span": {
"end": 69,
"start": 61
}
}
],
"header": true,
"kind": "table_row",
"span": {
"end": 70,
"start": 45
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "甲",
"span": {
"end": 97,
"start": 94
}
}
],
"kind": "table_cell",
"span": {
"end": 98,
"start": 93
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "1",
"span": {
"end": 101,
"start": 100
}
}
],
"kind": "table_cell",
"span": {
"end": 102,
"start": 99
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "第一行",
"span": {
"end": 113,
"start": 104
}
}
],
"kind": "table_cell",
"span": {
"end": 114,
"start": 103
}
}
],
"header": false,
"kind": "table_row",
"span": {
"end": 115,
"start": 92
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "乙",
"span": {
"end": 121,
"start": 118
}
}
],
"kind": "table_cell",
"span": {
"end": 122,
"start": 117
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "2",
"span": {
"end": 125,
"start": 124
}
}
],
"kind": "table_cell",
"span": {
"end": 126,
"start": 123
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "第二行",
"span": {
"end": 137,
"start": 128
}
}
],
"kind": "table_cell",
"span": {
"end": 138,
"start": 127
}
}
],
"header": false,
"kind": "table_row",
"span": {
"end": 139,
"start": 116
}
}
],
"kind": "table",
"span": {
"end": 139,
"start": 45
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "行内公式 ",
"span": {
"end": 154,
"start": 141
}
},
{
"children": [],
"display": false,
"kind": "math",
"literal": "E = mc^2",
"span": {
"end": 164,
"start": 154
}
},
{
"children": [],
"kind": "text",
"literal": ";块公式:",
"span": {
"end": 179,
"start": 164
}
}
],
"kind": "paragraph",
"span": {
"end": 179,
"start": 141
}
},
{
"children": [],
"kind": "math_block",
"literal": "\\sum_{i=1}^{n} i = \\frac{n(n+1)}{2}\n",
"span": {
"end": 222,
"start": 181
}
},
{
"children": [],
"fenced": true,
"info": "python",
"kind": "code_block",
"literal": "print(\"代码围栏永远是惰性资源\")\n",
"span": {
"end": 280,
"start": 224
}
},
{
"children": [
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "任务列表可读",
"span": {
"end": 306,
"start": 288
}
}
],
"kind": "paragraph",
"span": {
"end": 306,
"start": 288
}
}
],
"kind": "item",
"span": {
"end": 306,
"start": 282
},
"task": true
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "不会触发任何执行",
"span": {
"end": 337,
"start": 313
}
}
],
"kind": "paragraph",
"span": {
"end": 337,
"start": 313
}
}
],
"kind": "item",
"span": {
"end": 337,
"start": 307
},
"task": false
}
],
"kind": "list",
"ordered": false,
"span": {
"end": 337,
"start": 282
},
"start": null,
"tight": true
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "外部链接:",
"span": {
"end": 354,
"start": 339
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "Marqdo CLI",
"span": {
"end": 365,
"start": 355
}
}
],
"kind": "link",
"span": {
"end": 403,
"start": 354
},
"title": "",
"url": "https://github.com/cflmy/marqdo-cli"
},
{
"children": [],
"kind": "text",
"literal": "。",
"span": {
"end": 406,
"start": 403
}
}
],
"kind": "paragraph",
"span": {
"end": 406,
"start": 339
}
}
],
"kind": "document",
"span": {
"end": 407,
"start": 0
}
},
"units": [
{
"id": "root:tables-math@0.1.0::index.mq.md#",
"path": [],
"parent_id": null,
"kind": "root",
"name": "",
"level": 0,
"mode": "knowledge",
"mode_origin": "default",
"mode_source_unit_id": "root:tables-math@0.1.0::index.mq.md#",
"heading_span": null,
"span": {
"start": 0,
"end": 407
},
"function": null
},
{
"id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源",
"path": [
"表格、公式与惰性资源"
],
"parent_id": "root:tables-math@0.1.0::index.mq.md#",
"kind": "namespace",
"name": "表格、公式与惰性资源",
"level": 1,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源",
"heading_span": {
"start": 0,
"end": 43
},
"span": {
"start": 0,
"end": 407
},
"function": null
}
],
"anchors": [
{
"anchor": "表格公式与惰性资源",
"unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源"
}
],
"functions": [],
"imports": [],
"references": [
{
"source": "root:tables-math@0.1.0::index.mq.md",
"source_unit": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源",
"url": "https://github.com/cflmy/marqdo-cli",
"span": {
"start": 354,
"end": 403
},
"state": "external",
"target_kind": null,
"target_module": null,
"target_unit": null,
"candidate_package_instance_id": null,
"candidate_path": null,
"fragment": null,
"candidates": []
}
],
"calls": [],
"resources": [
{
"id": "root:tables-math@0.1.0::index.mq.md#resource:formula-1",
"module_id": "root:tables-math@0.1.0::index.mq.md",
"unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源",
"kind": "formula",
"span": {
"start": 154,
"end": 164
},
"content_digest": "2820951a377c18ce3e89093ca7c31c204b1196a7e571781c6080f8207524a8dc",
"language": null,
"display": false
},
{
"id": "root:tables-math@0.1.0::index.mq.md#resource:formula-2",
"module_id": "root:tables-math@0.1.0::index.mq.md",
"unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源",
"kind": "formula",
"span": {
"start": 181,
"end": 222
},
"content_digest": "8b1e8a7ed159e8223af79e768681907870ae7143f0b16001091377f9ff018db2",
"language": null,
"display": true
},
{
"id": "root:tables-math@0.1.0::index.mq.md#resource:code-1",
"module_id": "root:tables-math@0.1.0::index.mq.md",
"unit_id": "root:tables-math@0.1.0::index.mq.md#表格、公式与惰性资源",
"kind": "code",
"span": {
"start": 224,
"end": 280
},
"content_digest": "a0d49e456637468d7f594f4e2bb513321875855c1fe85d28e0ca62f1e9180d15",
"language": "python",
"display": null
}
]
}
],
"diagnostics": []
}
@@ -0,0 +1,495 @@
{
"schema": "marqdo.analysis",
"schema_version": 3,
"producer": {
"name": "marqdo",
"version": "3.0.0-rc.4",
"markdown_profile": "marqdo.md.v1"
},
"project": {
"root_id": "root:unicode-spans@0.1.0",
"identity_kind": "manifest",
"entry_module_id": "root:unicode-spans@0.1.0::crlf.mq.md",
"lock_digest": "",
"manifest_digest": "sha256:f0fa034f049dddbbd467d7fee6a2995c61b61ec6c075efa3650b490e45fb2b11",
"stdlib": {
"version": "0.1.0",
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713"
},
"extensions": []
},
"modules": [
{
"id": "root:unicode-spans@0.1.0::crlf.mq.md",
"package_instance_id": "root:unicode-spans@0.1.0",
"relative_path": "crlf.mq.md",
"source_digest": "3d6c99d8e1666b14cc51e6774a4cf514a3a252f3b2f9f541c7cde4a090551b1f",
"source": "# @knowledge CRLF 文档\r\n\r\n正文包含中文与 emoji 🙂。\r\n\r\n# @exec 演示\r\n\r\n## @exec main\r\n\r\n`params(n: Int)`\r\n\r\n**if n > 0**\r\n\r\n`return n`\r\n\r\n**else**\r\n\r\n`return 0`\r\n\r\n**end**\r\n",
"document": {
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge CRLF 文档",
"span": {
"end": 24,
"start": 2
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 24,
"start": 0
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "正文包含中文与 emoji 🙂。",
"span": {
"end": 63,
"start": 28
}
}
],
"kind": "paragraph",
"span": {
"end": 63,
"start": 28
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec 演示",
"span": {
"end": 81,
"start": 69
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 81,
"start": 67
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec main",
"span": {
"end": 98,
"start": 88
}
}
],
"kind": "heading",
"level": 2,
"setext": false,
"span": {
"end": 98,
"start": 85
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "params(n: Int)",
"span": {
"end": 118,
"start": 102
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 118,
"start": 102
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "if n > 0",
"span": {
"end": 132,
"start": 124
}
}
],
"kind": "strong",
"span": {
"end": 134,
"start": 122
}
}
],
"kind": "paragraph",
"span": {
"end": 134,
"start": 122
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "return n",
"span": {
"end": 148,
"start": 138
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 148,
"start": 138
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "else",
"span": {
"end": 158,
"start": 154
}
}
],
"kind": "strong",
"span": {
"end": 160,
"start": 152
}
}
],
"kind": "paragraph",
"span": {
"end": 160,
"start": 152
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "return 0",
"span": {
"end": 174,
"start": 164
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 174,
"start": 164
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "end",
"span": {
"end": 183,
"start": 180
}
}
],
"kind": "strong",
"span": {
"end": 185,
"start": 178
}
}
],
"kind": "paragraph",
"span": {
"end": 185,
"start": 178
}
}
],
"kind": "document",
"span": {
"end": 187,
"start": 0
}
},
"units": [
{
"id": "root:unicode-spans@0.1.0::crlf.mq.md#",
"path": [],
"parent_id": null,
"kind": "root",
"name": "",
"level": 0,
"mode": "knowledge",
"mode_origin": "default",
"mode_source_unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#",
"heading_span": null,
"span": {
"start": 0,
"end": 187
},
"function": null
},
{
"id": "root:unicode-spans@0.1.0::crlf.mq.md#CRLF 文档",
"path": [
"CRLF 文档"
],
"parent_id": "root:unicode-spans@0.1.0::crlf.mq.md#",
"kind": "namespace",
"name": "CRLF 文档",
"level": 1,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#CRLF 文档",
"heading_span": {
"start": 0,
"end": 24
},
"span": {
"start": 0,
"end": 67
},
"function": null
},
{
"id": "root:unicode-spans@0.1.0::crlf.mq.md#演示",
"path": [
"演示"
],
"parent_id": "root:unicode-spans@0.1.0::crlf.mq.md#",
"kind": "namespace",
"name": "演示",
"level": 1,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#演示",
"heading_span": {
"start": 67,
"end": 81
},
"span": {
"start": 67,
"end": 187
},
"function": null
},
{
"id": "root:unicode-spans@0.1.0::crlf.mq.md#演示/main",
"path": [
"演示",
"main"
],
"parent_id": "root:unicode-spans@0.1.0::crlf.mq.md#演示",
"kind": "function",
"name": "main",
"level": 2,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#演示/main",
"heading_span": {
"start": 85,
"end": 98
},
"span": {
"start": 85,
"end": 187
},
"function": "root:unicode-spans@0.1.0::crlf.mq.md::演示.main"
}
],
"anchors": [
{
"anchor": "crlf-文档",
"unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#CRLF 文档"
},
{
"anchor": "main",
"unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#演示/main"
},
{
"anchor": "演示",
"unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#演示"
}
],
"functions": [
{
"id": "root:unicode-spans@0.1.0::crlf.mq.md::演示.main",
"unit_id": "root:unicode-spans@0.1.0::crlf.mq.md#演示/main",
"local_name": "main",
"namespace": "演示",
"span": {
"start": 85,
"end": 185
},
"heading_span": {
"start": 85,
"end": 98
},
"signature": {
"kind": "explicit",
"params": [
{
"name": "n",
"required": true,
"type": "Int",
"default": null,
"span": {
"start": 109,
"end": 115
}
}
]
},
"effects": [
"unknown"
],
"body": [
{
"arms": [
{
"body": [
{
"kind": "return",
"span": {
"end": 148,
"start": 138
},
"value": {
"kind": "variable",
"name": "n",
"span": {
"end": 147,
"start": 146
}
}
}
],
"condition": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 128,
"start": 127
}
},
"op": "gt",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
},
"span": {
"end": 132,
"start": 127
}
},
"condition_span": {
"end": 134,
"start": 122
},
"span": {
"end": 134,
"start": 122
}
},
{
"body": [
{
"kind": "return",
"span": {
"end": 174,
"start": 164
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
}
}
],
"condition": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "bool",
"value": true
},
"condition_span": {
"end": 160,
"start": 152
},
"span": {
"end": 160,
"start": 152
}
}
],
"kind": "branch",
"span": {
"end": 134,
"start": 122
}
}
]
}
],
"imports": [],
"references": [],
"calls": [],
"resources": []
}
],
"diagnostics": []
}
+638
View File
@@ -0,0 +1,638 @@
{
"schema": "marqdo.analysis",
"schema_version": 3,
"producer": {
"name": "marqdo",
"version": "3.0.0-rc.4",
"markdown_profile": "marqdo.md.v1"
},
"project": {
"root_id": "root:unicode-spans@0.1.0",
"identity_kind": "manifest",
"entry_module_id": "root:unicode-spans@0.1.0::index.mq.md",
"lock_digest": "",
"manifest_digest": "sha256:f0fa034f049dddbbd467d7fee6a2995c61b61ec6c075efa3650b490e45fb2b11",
"stdlib": {
"version": "0.1.0",
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713"
},
"extensions": []
},
"modules": [
{
"id": "root:unicode-spans@0.1.0::index.mq.md",
"package_instance_id": "root:unicode-spans@0.1.0",
"relative_path": "index.mq.md",
"source_digest": "b4f8dd12f18a984af129974bc4dd153e97df99cc262bcafb2ae1187b6c5ce7d0",
"source": "# @knowledge 中文 🙂 标题\n\n正文包含 emoji 🙂 与组合字符 é,以及惰性 `代码`。**此处加粗是知识内容,不执行。**\n\n| 名称 | 值 |\n| --- | --- |\n| 甲🙂 | 1 |\n\n# @exec 演示\n\n## @exec main\n\n`params(n: Int)`\n\n**if n > 0**\n\n`return 1`\n\n**else**\n\n`return 1`\n\n**end**\n",
"document": {
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge 中文 🙂 标题",
"span": {
"end": 31,
"start": 2
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 31,
"start": 0
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "正文包含 emoji 🙂 与组合字符 é,以及惰性 ",
"span": {
"end": 91,
"start": 33
}
},
{
"children": [],
"kind": "code",
"literal": "代码",
"span": {
"end": 99,
"start": 91
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": "。",
"span": {
"end": 102,
"start": 99
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "此处加粗是知识内容,不执行。",
"span": {
"end": 146,
"start": 104
}
}
],
"kind": "strong",
"span": {
"end": 148,
"start": 102
}
}
],
"kind": "paragraph",
"span": {
"end": 148,
"start": 33
}
},
{
"alignments": [
"none",
"none"
],
"children": [
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "名称",
"span": {
"end": 158,
"start": 152
}
}
],
"kind": "table_cell",
"span": {
"end": 159,
"start": 151
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "值",
"span": {
"end": 164,
"start": 161
}
}
],
"kind": "table_cell",
"span": {
"end": 165,
"start": 160
}
}
],
"header": true,
"kind": "table_row",
"span": {
"end": 166,
"start": 150
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "甲🙂",
"span": {
"end": 190,
"start": 183
}
}
],
"kind": "table_cell",
"span": {
"end": 191,
"start": 182
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "1",
"span": {
"end": 194,
"start": 193
}
}
],
"kind": "table_cell",
"span": {
"end": 195,
"start": 192
}
}
],
"header": false,
"kind": "table_row",
"span": {
"end": 196,
"start": 181
}
}
],
"kind": "table",
"span": {
"end": 196,
"start": 150
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec 演示",
"span": {
"end": 212,
"start": 200
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 212,
"start": 198
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@exec main",
"span": {
"end": 227,
"start": 217
}
}
],
"kind": "heading",
"level": 2,
"setext": false,
"span": {
"end": 227,
"start": 214
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "params(n: Int)",
"span": {
"end": 245,
"start": 229
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 245,
"start": 229
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "if n > 0",
"span": {
"end": 257,
"start": 249
}
}
],
"kind": "strong",
"span": {
"end": 259,
"start": 247
}
}
],
"kind": "paragraph",
"span": {
"end": 259,
"start": 247
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "return 1",
"span": {
"end": 271,
"start": 261
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 271,
"start": 261
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "else",
"span": {
"end": 279,
"start": 275
}
}
],
"kind": "strong",
"span": {
"end": 281,
"start": 273
}
}
],
"kind": "paragraph",
"span": {
"end": 281,
"start": 273
}
},
{
"children": [
{
"children": [],
"kind": "code",
"literal": "return 1",
"span": {
"end": 293,
"start": 283
},
"ticks": 1
}
],
"kind": "paragraph",
"span": {
"end": 293,
"start": 283
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "end",
"span": {
"end": 300,
"start": 297
}
}
],
"kind": "strong",
"span": {
"end": 302,
"start": 295
}
}
],
"kind": "paragraph",
"span": {
"end": 302,
"start": 295
}
}
],
"kind": "document",
"span": {
"end": 303,
"start": 0
}
},
"units": [
{
"id": "root:unicode-spans@0.1.0::index.mq.md#",
"path": [],
"parent_id": null,
"kind": "root",
"name": "",
"level": 0,
"mode": "knowledge",
"mode_origin": "default",
"mode_source_unit_id": "root:unicode-spans@0.1.0::index.mq.md#",
"heading_span": null,
"span": {
"start": 0,
"end": 303
},
"function": null
},
{
"id": "root:unicode-spans@0.1.0::index.mq.md#中文 🙂 标题",
"path": [
"中文 🙂 标题"
],
"parent_id": "root:unicode-spans@0.1.0::index.mq.md#",
"kind": "namespace",
"name": "中文 🙂 标题",
"level": 1,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:unicode-spans@0.1.0::index.mq.md#中文 🙂 标题",
"heading_span": {
"start": 0,
"end": 31
},
"span": {
"start": 0,
"end": 198
},
"function": null
},
{
"id": "root:unicode-spans@0.1.0::index.mq.md#演示",
"path": [
"演示"
],
"parent_id": "root:unicode-spans@0.1.0::index.mq.md#",
"kind": "namespace",
"name": "演示",
"level": 1,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:unicode-spans@0.1.0::index.mq.md#演示",
"heading_span": {
"start": 198,
"end": 212
},
"span": {
"start": 198,
"end": 303
},
"function": null
},
{
"id": "root:unicode-spans@0.1.0::index.mq.md#演示/main",
"path": [
"演示",
"main"
],
"parent_id": "root:unicode-spans@0.1.0::index.mq.md#演示",
"kind": "function",
"name": "main",
"level": 2,
"mode": "exec",
"mode_origin": "explicit",
"mode_source_unit_id": "root:unicode-spans@0.1.0::index.mq.md#演示/main",
"heading_span": {
"start": 214,
"end": 227
},
"span": {
"start": 214,
"end": 303
},
"function": "root:unicode-spans@0.1.0::index.mq.md::演示.main"
}
],
"anchors": [
{
"anchor": "main",
"unit_id": "root:unicode-spans@0.1.0::index.mq.md#演示/main"
},
{
"anchor": "中文--标题",
"unit_id": "root:unicode-spans@0.1.0::index.mq.md#中文 🙂 标题"
},
{
"anchor": "演示",
"unit_id": "root:unicode-spans@0.1.0::index.mq.md#演示"
}
],
"functions": [
{
"id": "root:unicode-spans@0.1.0::index.mq.md::演示.main",
"unit_id": "root:unicode-spans@0.1.0::index.mq.md#演示/main",
"local_name": "main",
"namespace": "演示",
"span": {
"start": 214,
"end": 302
},
"heading_span": {
"start": 214,
"end": 227
},
"signature": {
"kind": "explicit",
"params": [
{
"name": "n",
"required": true,
"type": "Int",
"default": null,
"span": {
"start": 236,
"end": 242
}
}
]
},
"effects": [
"unknown"
],
"body": [
{
"arms": [
{
"body": [
{
"kind": "return",
"span": {
"end": 271,
"start": 261
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "1"
}
}
],
"condition": {
"kind": "binary",
"left": {
"kind": "variable",
"name": "n",
"span": {
"end": 253,
"start": 252
}
},
"op": "gt",
"right": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "0"
},
"span": {
"end": 257,
"start": 252
}
},
"condition_span": {
"end": 259,
"start": 247
},
"span": {
"end": 259,
"start": 247
}
},
{
"body": [
{
"kind": "return",
"span": {
"end": 293,
"start": 283
},
"value": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "int",
"value": "1"
}
}
],
"condition": {
"kind": "literal",
"span": {
"end": 0,
"start": 0
},
"type": "bool",
"value": true
},
"condition_span": {
"end": 281,
"start": 273
},
"span": {
"end": 281,
"start": 273
}
}
],
"kind": "branch",
"span": {
"end": 259,
"start": 247
}
}
]
}
],
"imports": [],
"references": [],
"calls": [],
"resources": []
}
],
"diagnostics": []
}
+716
View File
@@ -0,0 +1,716 @@
{
"schema": "marqdo.analysis",
"schema_version": 3,
"producer": {
"name": "marqdo",
"version": "3.0.0-rc.4",
"markdown_profile": "marqdo.md.v1"
},
"project": {
"root_id": "root:welcome-demo@0.1.0",
"identity_kind": "manifest",
"entry_module_id": "root:welcome-demo@0.1.0::00-welcome.mq.md",
"lock_digest": "",
"manifest_digest": "sha256:69ce9ddb5e526f335adb51f374ada998db8752185fab11f686002dbbb567b46f",
"stdlib": {
"version": "0.1.0",
"digest": "sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713",
"instance_id": "std:marqdo-stdlib@0.1.0#5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713"
},
"extensions": []
},
"modules": [
{
"id": "root:welcome-demo@0.1.0::00-welcome.mq.md",
"package_instance_id": "root:welcome-demo@0.1.0",
"relative_path": "00-welcome.mq.md",
"source_digest": "879215bf0dc432b78924800a08eac37d353a9694652c5542294f4ce7fe6da173",
"source": "# @knowledge 欢迎来到 Marqdo\n\nMarqdo 把 Markdown 当作可执行文档的语言:标题声明 `@exec` / `@knowledge` 模式,\n强调、斜体与行内代码是**等价的单语句载体**,而 `if` / `else` / `while` / `end` /\n`return` 决定真正的操作。\n\n| 阅读态 | 内容 | 是否执行 |\n| --- | --- | --- |\n| 文档 | 原始 Markdown 排版 | 否 |\n| 源码 | 逐行原文,包含全部标记 | 否 |\n| 运行 | 用户显式确认后才出现 | 是(需要确认) |\n\n继续阅读:[语法演示](./guide.mq.md)。\n\n> 这份欢迎页只是 `view.json` 显式指定的站点首页,普通 `welcome` 文件名不会自动变成 Hero。\n",
"document": {
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "@knowledge 欢迎来到 Marqdo",
"span": {
"end": 32,
"start": 2
}
}
],
"kind": "heading",
"level": 1,
"setext": false,
"span": {
"end": 32,
"start": 0
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "Marqdo 把 Markdown 当作可执行文档的语言:标题声明 ",
"span": {
"end": 100,
"start": 34
}
},
{
"children": [],
"kind": "code",
"literal": "@exec",
"span": {
"end": 107,
"start": 100
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " / ",
"span": {
"end": 110,
"start": 107
}
},
{
"children": [],
"kind": "code",
"literal": "@knowledge",
"span": {
"end": 122,
"start": 110
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " 模式,",
"span": {
"end": 132,
"start": 122
}
},
{
"children": [],
"kind": "soft_break",
"span": {
"end": 133,
"start": 132
}
},
{
"children": [],
"kind": "text",
"literal": "强调、斜体与行内代码是",
"span": {
"end": 166,
"start": 133
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "等价的单语句载体",
"span": {
"end": 192,
"start": 168
}
}
],
"kind": "strong",
"span": {
"end": 194,
"start": 166
}
},
{
"children": [],
"kind": "text",
"literal": ",而 ",
"span": {
"end": 201,
"start": 194
}
},
{
"children": [],
"kind": "code",
"literal": "if",
"span": {
"end": 205,
"start": 201
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " / ",
"span": {
"end": 208,
"start": 205
}
},
{
"children": [],
"kind": "code",
"literal": "else",
"span": {
"end": 214,
"start": 208
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " / ",
"span": {
"end": 217,
"start": 214
}
},
{
"children": [],
"kind": "code",
"literal": "while",
"span": {
"end": 224,
"start": 217
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " / ",
"span": {
"end": 227,
"start": 224
}
},
{
"children": [],
"kind": "code",
"literal": "end",
"span": {
"end": 232,
"start": 227
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " /",
"span": {
"end": 234,
"start": 232
}
},
{
"children": [],
"kind": "soft_break",
"span": {
"end": 235,
"start": 234
}
},
{
"children": [],
"kind": "code",
"literal": "return",
"span": {
"end": 243,
"start": 235
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " 决定真正的操作。",
"span": {
"end": 268,
"start": 243
}
}
],
"kind": "paragraph",
"span": {
"end": 268,
"start": 34
}
},
{
"alignments": [
"none",
"none",
"none"
],
"children": [
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "阅读态",
"span": {
"end": 281,
"start": 272
}
}
],
"kind": "table_cell",
"span": {
"end": 282,
"start": 271
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "内容",
"span": {
"end": 290,
"start": 284
}
}
],
"kind": "table_cell",
"span": {
"end": 291,
"start": 283
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "是否执行",
"span": {
"end": 305,
"start": 293
}
}
],
"kind": "table_cell",
"span": {
"end": 306,
"start": 292
}
}
],
"header": true,
"kind": "table_row",
"span": {
"end": 307,
"start": 270
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "文档",
"span": {
"end": 336,
"start": 330
}
}
],
"kind": "table_cell",
"span": {
"end": 337,
"start": 329
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "原始 Markdown 排版",
"span": {
"end": 361,
"start": 339
}
}
],
"kind": "table_cell",
"span": {
"end": 362,
"start": 338
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "否",
"span": {
"end": 367,
"start": 364
}
}
],
"kind": "table_cell",
"span": {
"end": 368,
"start": 363
}
}
],
"header": false,
"kind": "table_row",
"span": {
"end": 369,
"start": 328
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "源码",
"span": {
"end": 378,
"start": 372
}
}
],
"kind": "table_cell",
"span": {
"end": 379,
"start": 371
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "逐行原文,包含全部标记",
"span": {
"end": 414,
"start": 381
}
}
],
"kind": "table_cell",
"span": {
"end": 415,
"start": 380
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "否",
"span": {
"end": 420,
"start": 417
}
}
],
"kind": "table_cell",
"span": {
"end": 421,
"start": 416
}
}
],
"header": false,
"kind": "table_row",
"span": {
"end": 422,
"start": 370
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "运行",
"span": {
"end": 431,
"start": 425
}
}
],
"kind": "table_cell",
"span": {
"end": 432,
"start": 424
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "用户显式确认后才出现",
"span": {
"end": 464,
"start": 434
}
}
],
"kind": "table_cell",
"span": {
"end": 465,
"start": 433
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "是(需要确认)",
"span": {
"end": 488,
"start": 467
}
}
],
"kind": "table_cell",
"span": {
"end": 489,
"start": 466
}
}
],
"header": false,
"kind": "table_row",
"span": {
"end": 490,
"start": 423
}
}
],
"kind": "table",
"span": {
"end": 490,
"start": 270
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "继续阅读:",
"span": {
"end": 507,
"start": 492
}
},
{
"children": [
{
"children": [],
"kind": "text",
"literal": "语法演示",
"span": {
"end": 520,
"start": 508
}
}
],
"kind": "link",
"span": {
"end": 536,
"start": 507
},
"title": "",
"url": "./guide.mq.md"
},
{
"children": [],
"kind": "text",
"literal": "。",
"span": {
"end": 539,
"start": 536
}
}
],
"kind": "paragraph",
"span": {
"end": 539,
"start": 492
}
},
{
"children": [
{
"children": [
{
"children": [],
"kind": "text",
"literal": "这份欢迎页只是 ",
"span": {
"end": 565,
"start": 543
}
},
{
"children": [],
"kind": "code",
"literal": "view.json",
"span": {
"end": 576,
"start": 565
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " 显式指定的站点首页,普通 ",
"span": {
"end": 614,
"start": 576
}
},
{
"children": [],
"kind": "code",
"literal": "welcome",
"span": {
"end": 623,
"start": 614
},
"ticks": 1
},
{
"children": [],
"kind": "text",
"literal": " 文件名不会自动变成 Hero。",
"span": {
"end": 659,
"start": 623
}
}
],
"kind": "paragraph",
"span": {
"end": 659,
"start": 543
}
}
],
"kind": "block_quote",
"span": {
"end": 659,
"start": 541
}
}
],
"kind": "document",
"span": {
"end": 660,
"start": 0
}
},
"units": [
{
"id": "root:welcome-demo@0.1.0::00-welcome.mq.md#",
"path": [],
"parent_id": null,
"kind": "root",
"name": "",
"level": 0,
"mode": "knowledge",
"mode_origin": "default",
"mode_source_unit_id": "root:welcome-demo@0.1.0::00-welcome.mq.md#",
"heading_span": null,
"span": {
"start": 0,
"end": 660
},
"function": null
},
{
"id": "root:welcome-demo@0.1.0::00-welcome.mq.md#欢迎来到 Marqdo",
"path": [
"欢迎来到 Marqdo"
],
"parent_id": "root:welcome-demo@0.1.0::00-welcome.mq.md#",
"kind": "namespace",
"name": "欢迎来到 Marqdo",
"level": 1,
"mode": "knowledge",
"mode_origin": "explicit",
"mode_source_unit_id": "root:welcome-demo@0.1.0::00-welcome.mq.md#欢迎来到 Marqdo",
"heading_span": {
"start": 0,
"end": 32
},
"span": {
"start": 0,
"end": 660
},
"function": null
}
],
"anchors": [
{
"anchor": "欢迎来到-marqdo",
"unit_id": "root:welcome-demo@0.1.0::00-welcome.mq.md#欢迎来到 Marqdo"
}
],
"functions": [],
"imports": [],
"references": [
{
"source": "root:welcome-demo@0.1.0::00-welcome.mq.md",
"source_unit": "root:welcome-demo@0.1.0::00-welcome.mq.md#欢迎来到 Marqdo",
"url": "./guide.mq.md",
"span": {
"start": 507,
"end": 536
},
"state": "not_loaded",
"target_kind": null,
"target_module": null,
"target_unit": null,
"candidate_package_instance_id": "root:welcome-demo@0.1.0",
"candidate_path": "guide.mq.md",
"fragment": null,
"candidates": []
}
],
"calls": [],
"resources": []
}
],
"diagnostics": []
}
@@ -0,0 +1,34 @@
{"kind":"stream.opened","payload":{"limits":{"max_observation_bytes":16777216,"max_observation_events":100000,"max_value_bytes":256},"observation":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"values":false},"producer":{"name":"marqdo","version":"3.0.0-rc.4"}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":0}
{"kind":"run.started","payload":{"entry":"root:control-flow@0.1.0::index.mq.md::main","mode":"pure","source":{"analysis_digest":"sha256:7e8711e9cbb5d5c73369da0c6620279468fa957d5ab8af038de6dd07d23117e3","root_id":"root:control-flow@0.1.0"},"started_unix_ms":1795610282724},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":1}
{"kind":"call.enter","payload":{"frame_id":"f1","function_id":"root:control-flow@0.1.0::index.mq.md::演示.main","module_id":"root:control-flow@0.1.0::index.mq.md","parent_frame_id":null,"span":null},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":2}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":202,"start":195},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":3}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.new","result_code":"ok","span":{"end":230,"start":214}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":4}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"buffer","span":{"end":231,"start":204},"value_state":"not_requested","value_type":"Memory"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":5}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":243,"start":234}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":6}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.open","result_code":"ok","span":{"end":304,"start":261}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":7}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"stdout","span":{"end":305,"start":251},"value_state":"not_requested","value_type":"Resource"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":8}
{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":9}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":false,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":10}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":true,"span":{"end":368,"start":360}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":11}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":380,"start":371}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":12}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":13}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.write","result_code":"ok","span":{"end":434,"start":398}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":14}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":450,"start":437},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":15}
{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":16}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":false,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":17}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":true,"span":{"end":368,"start":360}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":18}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":380,"start":371}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":19}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":20}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.write","result_code":"ok","span":{"end":434,"start":398}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":21}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":450,"start":437},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":22}
{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":23}
{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":true,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":24}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":348,"start":339}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":25}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"Mgo=","encoding":"base64"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":26}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.write","result_code":"ok","span":{"end":434,"start":398}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":27}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":450,"start":437},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":28}
{"kind":"loop.iteration","payload":{"decision":"exit","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":29}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.close","result_code":"ok","span":{"end":484,"start":462}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":30}
{"kind":"return","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":497,"start":487},"value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":31}
{"kind":"call.exit","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":null,"status":"return"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":32}
{"kind":"run.completed","payload":{"status":"ok","value":{"decimal":"3","type":"int"},"value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":33}
@@ -0,0 +1 @@
{"events":[{"kind":"stream.opened","payload":{"limits":{"max_observation_bytes":16777216,"max_observation_events":100000,"max_value_bytes":256},"observation":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"values":false},"producer":{"name":"marqdo","version":"3.0.0-rc.4"}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":0},{"kind":"run.started","payload":{"entry":"root:control-flow@0.1.0::index.mq.md::main","mode":"pure","source":{"analysis_digest":"sha256:7e8711e9cbb5d5c73369da0c6620279468fa957d5ab8af038de6dd07d23117e3","root_id":"root:control-flow@0.1.0"},"started_unix_ms":1795610282724},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":1},{"kind":"call.enter","payload":{"frame_id":"f1","function_id":"root:control-flow@0.1.0::index.mq.md::演示.main","module_id":"root:control-flow@0.1.0::index.mq.md","parent_frame_id":null,"span":null},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":2},{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":202,"start":195},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":3},{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.new","result_code":"ok","span":{"end":230,"start":214}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":4},{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"buffer","span":{"end":231,"start":204},"value_state":"not_requested","value_type":"Memory"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":5},{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":243,"start":234}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":6},{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.open","result_code":"ok","span":{"end":304,"start":261}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":7},{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"stdout","span":{"end":305,"start":251},"value_state":"not_requested","value_type":"Resource"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":8},{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":9},{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":false,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":10},{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":true,"span":{"end":368,"start":360}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":11},{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":380,"start":371}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":12},{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":13},{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"resource.write","result_code":"ok","span":{"end":434,"start":398}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":14},{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":450,"start":437},"value_state":"not_requested","value_type":"Int"},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":15},{"kind":"loop.iteration","payload":{"decision":"continue","frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","span":{"end":322,"start":307}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":16},{"kind":"branch.eval","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","result":false,"span":{"end":336,"start":324}},"run_id":"21-1795610282710646771","schema":"marqdo.observation","schema_version":1,"seq":17},{"kind":"branch.eLine truncated
@@ -0,0 +1,12 @@
{"kind":"stream.opened","payload":{"limits":{"max_observation_bytes":16777216,"max_observation_events":5,"max_value_bytes":256},"observation":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"values":false},"producer":{"name":"marqdo","version":"3.0.0-rc.4"}},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":0}
{"kind":"run.started","payload":{"entry":"root:control-flow@0.1.0::index.mq.md::main","mode":"pure","source":{"analysis_digest":"sha256:7e8711e9cbb5d5c73369da0c6620279468fa957d5ab8af038de6dd07d23117e3","root_id":"root:control-flow@0.1.0"},"started_unix_ms":1795610282743},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":1}
{"kind":"call.enter","payload":{"frame_id":"f1","function_id":"root:control-flow@0.1.0::index.mq.md::演示.main","module_id":"root:control-flow@0.1.0::index.mq.md","parent_frame_id":null,"span":null},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":2}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":202,"start":195},"value_state":"not_requested","value_type":"Int"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":3}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.new","result_code":"ok","span":{"end":230,"start":214}},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":4}
{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"buffer","span":{"end":231,"start":204},"value_state":"not_requested","value_type":"Memory"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":5}
{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":243,"start":234}},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":6}
{"kind":"observation.truncated","payload":{"dropped":null,"limit":5,"reason":"event_budget","written":5},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":7}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":8}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":9}
{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"Mgo=","encoding":"base64"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":10}
{"kind":"run.completed","payload":{"status":"ok","value":{"decimal":"3","type":"int"},"value_type":"Int"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":11}
@@ -0,0 +1 @@
{"events":[{"kind":"stream.opened","payload":{"limits":{"max_observation_bytes":16777216,"max_observation_events":5,"max_value_bytes":256},"observation":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"values":false},"producer":{"name":"marqdo","version":"3.0.0-rc.4"}},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":0},{"kind":"run.started","payload":{"entry":"root:control-flow@0.1.0::index.mq.md::main","mode":"pure","source":{"analysis_digest":"sha256:7e8711e9cbb5d5c73369da0c6620279468fa957d5ab8af038de6dd07d23117e3","root_id":"root:control-flow@0.1.0"},"started_unix_ms":1795610282743},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":1},{"kind":"call.enter","payload":{"frame_id":"f1","function_id":"root:control-flow@0.1.0::index.mq.md::演示.main","module_id":"root:control-flow@0.1.0::index.mq.md","parent_frame_id":null,"span":null},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":2},{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"x","span":{"end":202,"start":195},"value_state":"not_requested","value_type":"Int"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":3},{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.new","result_code":"ok","span":{"end":230,"start":214}},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":4},{"kind":"variable.assigned","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","name":"buffer","span":{"end":231,"start":204},"value_state":"not_requested","value_type":"Memory"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":5},{"kind":"effect","payload":{"frame_id":"f1","module_id":"root:control-flow@0.1.0::index.mq.md","operation":"memory.write","result_code":"ok","span":{"end":243,"start":234}},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":6},{"kind":"observation.truncated","payload":{"dropped":null,"limit":5,"reason":"event_budget","written":5},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":7},{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":8},{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"MAo=","encoding":"base64"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":9},{"kind":"stdout.chunk","payload":{"byte_count":2,"data_base64":"Mgo=","encoding":"base64"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":10},{"kind":"run.completed","payload":{"status":"ok","value":{"decimal":"3","type":"int"},"value_type":"Int"},"run_id":"28-1795610282728843625","schema":"marqdo.observation","schema_version":1,"seq":11}],"capture":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"truncated":{"dropped":null,"limit":5,"reason":"event_budget","written":5},"values":false},"run":{"id":"28-1795610282728843625","source":{"analysis_digest":"sha256:7e8711e9cbb5d5c73369da0c6620279468fa957d5ab8af038de6dd07d23117e3","root_id":"root:control-flow@0.1.0"},"status":"ok"},"schema":"marqdo.observation","schema_version":1}
@@ -0,0 +1,3 @@
{"kind":"stream.opened","payload":{"limits":{"max_observation_bytes":16777216,"max_observation_events":100000,"max_value_bytes":256},"observation":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"values":false},"producer":{"name":"marqdo","version":"3.0.0-rc.4"}},"run_id":"35-1795610282746900014","schema":"marqdo.observation","schema_version":1,"seq":0}
{"kind":"run.started","payload":{"entry":"root:mixed-modes@0.1.0::index.mq.md::main","mode":"pure","source":{"analysis_digest":"sha256:fd686ba0851c34a897f3e432c579ed4c64188914e5b6aec5e24b8ee4f444b01f","root_id":"root:mixed-modes@0.1.0"},"started_unix_ms":1795610282761},"run_id":"35-1795610282746900014","schema":"marqdo.observation","schema_version":1,"seq":1}
{"kind":"run.failed","payload":{"error":{"code":"call.arity","column":null,"frames":[],"line":null,"message":"`演示.main` is missing required argument `n`","module_id":null,"origin":"source","relative_path":null,"span":null},"status":"error"},"run_id":"35-1795610282746900014","schema":"marqdo.observation","schema_version":1,"seq":2}
@@ -0,0 +1 @@
{"events":[{"kind":"stream.opened","payload":{"limits":{"max_observation_bytes":16777216,"max_observation_events":100000,"max_value_bytes":256},"observation":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"values":false},"producer":{"name":"marqdo","version":"3.0.0-rc.4"}},"run_id":"35-1795610282746900014","schema":"marqdo.observation","schema_version":1,"seq":0},{"kind":"run.started","payload":{"entry":"root:mixed-modes@0.1.0::index.mq.md::main","mode":"pure","source":{"analysis_digest":"sha256:fd686ba0851c34a897f3e432c579ed4c64188914e5b6aec5e24b8ee4f444b01f","root_id":"root:mixed-modes@0.1.0"},"started_unix_ms":1795610282761},"run_id":"35-1795610282746900014","schema":"marqdo.observation","schema_version":1,"seq":1},{"kind":"run.failed","payload":{"error":{"code":"call.arity","column":null,"frames":[],"line":null,"message":"`演示.main` is missing required argument `n`","module_id":null,"origin":"source","relative_path":null,"span":null},"status":"error"},"run_id":"35-1795610282746900014","schema":"marqdo.observation","schema_version":1,"seq":2}],"capture":{"allow_text_values":false,"level":"structural","selected_parameters":[],"selected_variables":[],"truncated":null,"values":false},"run":{"id":"35-1795610282746900014","source":{"analysis_digest":"sha256:fd686ba0851c34a897f3e432c579ed4c64188914e5b6aec5e24b8ee4f444b01f","root_id":"root:mixed-modes@0.1.0"},"status":"error"},"schema":"marqdo.observation","schema_version":1}
@@ -1,68 +0,0 @@
{
"command": "run",
"diagnostics": [],
"stderr": "",
"stdout": "0\n0\n2\n",
"success": true,
"trace": [
{
"duration_micros": 14,
"module": "root:control-flow@0.1.0::index.mq.md",
"op": "resource.open",
"result": "ok",
"seq": 4,
"span": {
"end": 304,
"start": 261
}
},
{
"duration_micros": 21,
"module": "root:control-flow@0.1.0::index.mq.md",
"op": "resource.write",
"result": "kind=stdio count=2",
"seq": 10,
"span": {
"end": 434,
"start": 398
}
},
{
"duration_micros": 0,
"module": "root:control-flow@0.1.0::index.mq.md",
"op": "resource.write",
"result": "kind=stdio count=2",
"seq": 16,
"span": {
"end": 434,
"start": 398
}
},
{
"duration_micros": 0,
"module": "root:control-flow@0.1.0::index.mq.md",
"op": "resource.write",
"result": "kind=stdio count=2",
"seq": 21,
"span": {
"end": 434,
"start": 398
}
},
{
"duration_micros": 0,
"module": "root:control-flow@0.1.0::index.mq.md",
"op": "resource.close",
"result": "flushed_bytes=0",
"seq": 24,
"span": {
"end": 484,
"start": 462
}
}
],
"value": {
"decimal": "3",
"type": "int"
}
}
@@ -1,316 +0,0 @@
{
"events": [
{
"detail": null,
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "call.enter",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 0,
"span": null
},
{
"detail": "initial_pages=1 max_pages=1",
"function_id": null,
"kind": "memory.new",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 1,
"span": {
"end": 230,
"start": 214
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 2,
"span": {
"end": 243,
"start": 234
}
},
{
"detail": "kind=stdio descriptor=stdout",
"function_id": null,
"kind": "resource.open",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 3,
"span": {
"end": 304,
"start": 261
}
},
{
"detail": "ok",
"duration_micros": 14,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.open",
"seq": 4,
"span": {
"end": 304,
"start": 261
}
},
{
"detail": "continue",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 5,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "false",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 6,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "true",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 7,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 8,
"span": {
"end": 380,
"start": 371
}
},
{
"detail": "kind=stdio count=2",
"function_id": null,
"kind": "resource.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 9,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "kind=stdio count=2",
"duration_micros": 21,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.write",
"seq": 10,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "continue",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 11,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "false",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 12,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "true",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 13,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 14,
"span": {
"end": 380,
"start": 371
}
},
{
"detail": "kind=stdio count=2",
"function_id": null,
"kind": "resource.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 15,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "kind=stdio count=2",
"duration_micros": 0,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.write",
"seq": 16,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "continue",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 17,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "true",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "branch.eval",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 18,
"span": {
"end": 336,
"start": 324
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 19,
"span": {
"end": 348,
"start": 339
}
},
{
"detail": "kind=stdio count=2",
"function_id": null,
"kind": "resource.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 20,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "kind=stdio count=2",
"duration_micros": 0,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.write",
"seq": 21,
"span": {
"end": 434,
"start": 398
}
},
{
"detail": "exit",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "loop.iteration",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 22,
"span": {
"end": 322,
"start": 307
}
},
{
"detail": "flushed_bytes=0",
"function_id": null,
"kind": "resource.close",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 23,
"span": {
"end": 484,
"start": 462
}
},
{
"detail": "flushed_bytes=0",
"duration_micros": 0,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.close",
"seq": 24,
"span": {
"end": 484,
"start": 462
}
},
{
"detail": "Int",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "return",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 25,
"span": {
"end": 497,
"start": 487
}
},
{
"detail": "return",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "call.exit",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 26,
"span": null
}
],
"limits": {
"max_bytes": 33554432,
"max_events": 100000
},
"run": {
"entry": "root:control-flow@0.1.0::index.mq.md::main",
"id": "29-1795354081718410176",
"status": "ok"
},
"schema": "marqdo.trace",
"schema_version": 2,
"source": {
"analysis_digest": "sha256:392c82598cdd9d649951133df9a364d85bca7036aa653a4139aab190e9040af4",
"root_id": "root:control-flow@0.1.0"
},
"truncated": null
}
@@ -1,24 +0,0 @@
{
"command": "run",
"diagnostics": [],
"stderr": "",
"stdout": "0\n0\n2\n",
"success": true,
"trace": [
{
"duration_micros": 10,
"module": "root:control-flow@0.1.0::index.mq.md",
"op": "resource.open",
"result": "ok",
"seq": 4,
"span": {
"end": 304,
"start": 261
}
}
],
"value": {
"decimal": "3",
"type": "int"
}
}
@@ -1,84 +0,0 @@
{
"events": [
{
"detail": null,
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "call.enter",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 0,
"span": null
},
{
"detail": "initial_pages=1 max_pages=1",
"function_id": null,
"kind": "memory.new",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 1,
"span": {
"end": 230,
"start": 214
}
},
{
"detail": "byte",
"function_id": "root:control-flow@0.1.0::index.mq.md::演示.main",
"kind": "memory.write",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 2,
"span": {
"end": 243,
"start": 234
}
},
{
"detail": "kind=stdio descriptor=stdout",
"function_id": null,
"kind": "resource.open",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"seq": 3,
"span": {
"end": 304,
"start": 261
}
},
{
"detail": "ok",
"duration_micros": 10,
"kind": "effect",
"module_id": "root:control-flow@0.1.0::index.mq.md",
"operation": "resource.open",
"seq": 4,
"span": {
"end": 304,
"start": 261
}
},
{
"detail": "event_budget",
"kind": "trace.truncated",
"module_id": null,
"seq": 5,
"span": null
}
],
"limits": {
"max_bytes": 33554432,
"max_events": 5
},
"run": {
"entry": "root:control-flow@0.1.0::index.mq.md::main",
"id": "31-1795354081721454068",
"status": "ok"
},
"schema": "marqdo.trace",
"schema_version": 2,
"source": {
"analysis_digest": "sha256:392c82598cdd9d649951133df9a364d85bca7036aa653a4139aab190e9040af4",
"root_id": "root:control-flow@0.1.0"
},
"truncated": {
"limit": 5,
"reason": "event_budget",
"written": 5
}
}
@@ -1,19 +0,0 @@
{
"command": "run",
"error": {
"code": "call.arity",
"column": null,
"file": null,
"frames": [],
"line": null,
"message": "`演示.main` is missing required argument `n`",
"module_id": null,
"origin": "source",
"relative_path": null,
"span": null
},
"stderr": "",
"stdout": "",
"success": false,
"trace": []
}
@@ -1,28 +0,0 @@
{
"events": [
{
"detail": null,
"function_id": "root:mixed-modes@0.1.0::index.mq.md::演示.main",
"kind": "call.enter",
"module_id": "root:mixed-modes@0.1.0::index.mq.md",
"seq": 0,
"span": null
}
],
"limits": {
"max_bytes": 33554432,
"max_events": 100000
},
"run": {
"entry": "root:mixed-modes@0.1.0::index.mq.md::main",
"id": "12-1795317753068595848",
"status": "call.arity"
},
"schema": "marqdo.trace",
"schema_version": 2,
"source": {
"analysis_digest": "sha256:5b13d0cd2044cbe3d5d5f51145a9dd0015e2992400f803dad5f0e42214ce4959",
"root_id": "root:mixed-modes@0.1.0"
},
"truncated": null
}