Files
Fig/README_zh-CN.md
PuqiAR 68e6552d07 Rewrite: C++ → Rust, Lexer + Error system complete
全量 Rust 重写 Fig 编译器前端。

Lexer: 43 个测试,千行压力测试通过,完整 UTF-8 支持(中文标识符/字符串),运算符最长匹配打表,单行/多行注释 + 错误恢复。

Error System: Diagnostic trait + Warning/Error/Critical 三级严重度,源码上下文渲染(Unicode 波浪线、中英双语 i18n),SourcePosition/SourceRange 为 LSP 准备,Related 关联信息,thrower 宏追踪编译器源码位置。

Build: cargo + build.rs(git hash + 编译时间戳)。

删除全部 C++ 源码。
2026-07-23 22:50:37 +08:00

33 lines
1.3 KiB
Markdown
Raw 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.
# Fig
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./Logo/LogoDark.svg">
<img src="./Logo/Logo.svg" alt="Fig Logo" width="200">
</picture>
> **🔔 主仓库https://git.fig-lang.cn/PuqiAR/Fig**
> *GitHub 仅为镜像Issue 与 PR 请提交至主仓库*
[English](./README.md) | [中文](./README_zh-CN.md)
![License](https://img.shields.io/badge/license-MIT-blue)
![Status](https://img.shields.io/badge/status-0.6.0--alpha-yellow)
![Rust](https://img.shields.io/badge/Rust-100%25-orange)
![cargo](https://img.shields.io/badge/cargo-构建-green)
![Platform](https://img.shields.io/badge/Windows%20·%20Linux%20·%20macOS-lightgrey)
**Fig** 是一门动态类型与静态类型注解混合的编程语言,采用基于引用的值语义。
> **v0.6.0 — Rust 重写进行中。**
## 进度
```
Lexer ████████████████████ 100% (43 测试, 全部通过)
Parser ░░░░░░░░░░░░░░░░░░░░ 0%
Analyzer ░░░░░░░░░░░░░░░░░░░░ 0%
Compiler ░░░░░░░░░░░░░░░░░░░░ 0%
VM ░░░░░░░░░░░░░░░░░░░░ 0%
LSP ░░░░░░░░░░░░░░░░░░░░ 0%
```