xbintsc 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ The design goals are:
|
|
|
13
13
|
2. **Well-factored modules** — lexer, parser, binder, codegen, driver, extensions each live in their own directory with their own tests.
|
|
14
14
|
3. **Extensive tests** — per-module unit tests plus end-to-end tests that compile and run real binaries.
|
|
15
15
|
4. **Pluggable extensions** — Node `fs`, Bun APIs, … are optional compile modules, not core code.
|
|
16
|
-
5. **Self-hosting
|
|
16
|
+
5. **Self-hosting** — the compiler compiles itself: `src/cli/main.ts` builds into a native `xbintsc` binary whose emitted LLVM IR is a fixpoint across generations. CI builds these binaries for every platform and a release attaches them.
|
|
17
17
|
6. **Multi-platform** — macOS, Linux and Windows on multiple CPUs, validated by GitHub Actions.
|
|
18
18
|
|
|
19
19
|
## How it works
|
package/README.zh-CN.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
2. **模块划分清晰** —— 词法、语法、绑定、代码生成、驱动、扩展各自独立目录,并有各自的测试。
|
|
13
13
|
3. **测试充分** —— 每个模块单元测试,外加真正编译并运行二进制的端到端测试。
|
|
14
14
|
4. **可插拔扩展** —— Node `fs`、Bun API 等是可选的编译模块,而非核心代码。
|
|
15
|
-
5.
|
|
15
|
+
5. **自举(self-hosting)** —— 编译器可编译自身:`src/cli/main.ts` 能构建为原生 `xbintsc` 二进制,其产出的 LLVM IR 跨代达到不动点。CI 会为各平台构建这些二进制,Release 则附上这些产物。
|
|
16
16
|
6. **多平台** —— 在多种 CPU 上支持 macOS、Linux 与 Windows,并由 GitHub Actions 验证。
|
|
17
17
|
|
|
18
18
|
## 工作原理
|