docs(spec): adopt RFC-LANG-0002 unified language semantics
Replace the Strong/Emph/List/Quote mapping in place with the single @exec/@knowledge heading-mode model, unified payload carriers and keyword control flow. - add the authoritative RFC, ADR-0052 and a historical ADR index - rewrite spec/mapping.md and spec/expression.ebnf as the normative mapping/statement grammar; update evaluation, references, math, foreign, package-format, plugin-abi, security and schema notes - rewrite README, AGENTS, COMPATIBILITY and CHANGELOG for the breaking language change; update the architecture index/overview and active docs - mark superseded planning docs, compute RFCs, evidence and syntax-role ADRs as historical/superseded without rewriting their decisions - add migration guide, per-file inventory and dev-only audit scripts The frontend/stdlib migration is completed in the following commits; this commit contains documentation only.
This commit is contained in:
1 parent
0d8ed44010
commit
49835424ee
47 files changed
+4941
-603
No files matched your search
+7
-5
@@ -21,7 +21,9 @@ Access is by `ref("#heading")` (exactly one code/formula resource in that
|
||||
heading range; `ref.ambiguous` otherwise — see `spec/references.md` §5):
|
||||
|
||||
````markdown
|
||||
## Python 校验
|
||||
# @knowledge 示例
|
||||
|
||||
## @knowledge Python 校验
|
||||
|
||||
```python
|
||||
import json, math, sys
|
||||
@@ -30,11 +32,11 @@ r = int(envelope["input"]["entries"]["r"]["decimal"])
|
||||
print(json.dumps({"type": "float", "value": math.pi * r ** 2}))
|
||||
```
|
||||
|
||||
## main
|
||||
## @exec main
|
||||
|
||||
**结果 = foreign.call(ref("#python-校验"), {"r": 3})**
|
||||
|
||||
> 打印(结果)
|
||||
`结果 = foreign.call(ref("#python-校验"), {"r": 3})`
|
||||
`print(结果)`
|
||||
`return 结果`
|
||||
````
|
||||
|
||||
The anchor is the GitHub-style slug of the heading (`#python-校验`), not the
|
||||
|
||||
Reference in new issue
Block a user