全量 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++ 源码。
33 lines
1.4 KiB
Markdown
33 lines
1.4 KiB
Markdown
# Fig
|
|
|
|
<picture>
|
|
<source media="(prefers-color-scheme: dark)" srcset="./Logo/LogoDark.svg">
|
|
<img src="./Logo/Logo.svg" alt="Fig Logo" width="200">
|
|
</picture>
|
|
|
|
> **🔔 Main Repository: https://git.fig-lang.cn/PuqiAR/Fig**
|
|
> *GitHub is only a mirror. Please submit issues and PRs to the main repository.*
|
|
|
|
[English](./README.md) | [中文](./README_zh-CN.md)
|
|
|
|

|
|

|
|

|
|

|
|

|
|
|
|
**Fig** is a programming language that blends dynamic typing with optional static type annotations, built on reference-based value semantics.
|
|
|
|
> **v0.6.0 — Rust rewrite in progress.**
|
|
|
|
## Progress
|
|
|
|
```
|
|
Lexer ████████████████████ 100% (43 tests, all pass)
|
|
Parser ░░░░░░░░░░░░░░░░░░░░ 0%
|
|
Analyzer ░░░░░░░░░░░░░░░░░░░░ 0%
|
|
Compiler ░░░░░░░░░░░░░░░░░░░░ 0%
|
|
VM ░░░░░░░░░░░░░░░░░░░░ 0%
|
|
LSP ░░░░░░░░░░░░░░░░░░░░ 0%
|
|
```
|