docs: L Language 语言参考手册 (language-reference.md)

- 14 章完整教程: 类型/变量/运算符/控制流/函数/struct/enum/数组/impl/match
- 3 个完整示例: 斐波那契/学生成绩/数组操作
- 快速参考卡片
- README 添加手册链接
This commit is contained in:
2026-06-05 18:45:58 +08:00
parent 5a0bf60698
commit 29648ef110
2 changed files with 577 additions and 0 deletions
+2
View File
@@ -18,6 +18,8 @@
L Language 是一门学习型编译语言,手写词法分析、递归下降 + Pratt 解析、语义分析和 LLVM IR 代码生成,最终生成原生可执行文件。语法借鉴 Rust,类型系统支持类型推断。
📖 **[语言参考手册](docs/language-reference.md)** — 完整的语法、类型、示例教程
```rust
fn fib(n: i64) -> i64 {
if n < 2 { return n; }