docs(compiler): explain compilation entry points and source examples

This commit is contained in:
2026-11-15 18:21:28 +08:00
parent 2ca839c0d8
commit 8937b8f8d2
6 changed files with 45 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
// cli run crates/compiler/examples/hello.endor → 你好,Endor 🌱
// compiler/tests/pipeline.rs 编译并加载本模块后调用 main,期望返回“你好,Endor 🌱”。
function main(): String {
// 返回 Unicode 文本字面量,测试核对编译及 VM 返回过程保留原文。
return "你好,Endor 🌱"
}