Files
2026-10-20 02:39:47 +08:00

28 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Lyra CLI
Lyra 是 Endor 的独立命令行宿主,由 Aster 语言引擎提供解析、编译和执行。
源码迁自 Aster 提交 51cd64e6884c1036564c22e5de582c083d6db142;引擎通过 vendor/aster 子模块固定版本。
| 入口 | 职责 |
| --- | --- |
| [crates](crates/README.md) | CLI 源码与进程集成测试 |
| [vendor](vendor/README.md) | 固定版本的 Aster 引擎 |
| [scripts](scripts/README.md) | 远端检查、五个 Endor 样例的实际输出报告 |
| [.gitea](.gitea/README.md) | ces-control CI 与 artifact |
| Dockerfile.ci | 远端检查和 Linux 可执行文件构建镜像 |
| Cargo.toml / Cargo.lock | Rust 1.91+ 工作区与依赖锁 |
| LICENSE / .gitignore / .dockerignore | 许可和产物排除 |
初始化子模块后,远端构建产出 `lyra`。用法:
```sh
lyra run vendor/aster/crates/compiler/examples/hello.endor
lyra eval vendor/aster/crates/compiler/examples/literal.endor
lyra parse --json vendor/aster/crates/frontend/examples/basic.endor
lyra bootstrap
```
run 默认调用无参数 main,可用 --entry 指定入口;run/eval/parse 支持 - 读取 UTF-8 stdin。语言能力与所有权见固定 Aster 版本文档。Lyra 不提供宿主 metadata 管理,相关命令已归 Hestia 的兼容管理程序 cli。
本地不构建、运行测试/冒烟或下载 Cargo 依赖。远端 CI 在 ces-control 显式运行固定 Aster 的引擎检查,再检查本项目格式、进程测试、Clippy,并执行固定 Aster 的五个样例;Markdown/JSON 报告保存真实 stdout/stderr、退出码、源码和预期值,失败也保留。成功后上传 Linux lyra 二进制。CI 内置任务凭据与源码检出说明见 [.gitea](.gitea/README.md),不自动查询运行状态。