Document workspace ownership, resource semantics and agent lifecycle

This commit is contained in:
2026-10-09 18:06:25 +08:00
parent f7526ab2a0
commit 52f497671e
31 changed files with 748 additions and 232 deletions
+4 -3
View File
@@ -15,7 +15,7 @@ price
product_1
```
namespace 路径段使用标识符。用户名属于系统身份规则,不直接使用源码标识符的定义。
namespace 路径段使用标识符。workspace handle 属于平台命名规则,不直接使用源码标识符的定义。
## 6.2 关键字
@@ -25,6 +25,7 @@ namespace 路径段使用标识符。用户名属于系统身份规则,不直
| --- | --- |
| `use` | 引用 namespace |
| `class` | 声明数据结构 |
| `agent` | agent 声明骨架使用的关键字提案 |
| `function` | 声明函数 |
| `let` | 绑定局部结果 |
| `return` | 返回函数结果 |
@@ -88,7 +89,7 @@ namespace 路径段使用标识符。用户名属于系统身份规则,不直
| `=` | let 绑定 |
| `+`、`-`、`*`、`/` | 算术运算 |
冒号的含义由语法位置确定:`alice:shop.data` 中分隔用户与路径,`price: Int` 中标注类型。组件参数的源码传入方式尚未定义,见[规范状态](../appendices/specification-status.md#ui)。
冒号的含义由语法位置确定:`atelier:shop.data` 中分隔 workspace handle 与路径,`price: Number` 中标注类型。组件参数的源码传入方式尚未定义,见[规范状态](../appendices/specification-status.md#ui)。
## 6.7 空白与注释
@@ -106,4 +107,4 @@ return amount
词法产生式集中列于[形式文法](../appendices/formal-grammar.md#词法)。
[上一章:Preflight 与 inflight](05-preflight-and-inflight.md) · [下一章:类型与类](07-types-and-classes.md) · [目录](../README.md)
[上一章:Preflight 与 inflight](05-preflight-and-inflight.md) · [下一章:资源、类型与类](07-types-and-classes.md) · [目录](../README.md)