This repository was archived by the owner on Aug 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33## [ v0.2.1] - 2025-07-15
44
55### 错误报告改进
6- - 现在编译器能够一次性显示所有语法错误 ,而不是只显示第一个错误后停止
6+ - 现在解释器能够一次性显示所有语法错误 ,而不是只显示第一个错误后停止
77- 重新设计的错误报告系统,更清晰地显示错误信息
88- 添加了错误恢复机制,即使存在多个错误也能够尽可能多地检查代码
99- 添加了 ` --cn-parser ` 参数用于显示更详细的解析调试信息
1010- 错误消息格式统一化,提高可读性
1111
1212### 健壮性提升
13- - 改进了错误处理流程,防止因单个错误导致整个编译过程终止
13+ - 改进了错误处理流程,防止因单个错误导致整个解析过程终止
1414- 添加了跳过错误点的恢复策略,使解析器能够继续处理后续代码
1515- 优化了内部错误信息收集机制,减少内存占用
1616
4141
4242### 性能优化
4343- 优化了文件缓存机制,避免重复加载已导入的文件
44- - 改进了符号表查找算法,提高了多文件项目的编译速度
44+ - 改进了符号表查找算法,提高了多文件项目的解释速度
4545
4646## [ v0.1.1] - 2025-07-15
4747
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ fn main() {
178178 Ok ( ( program, warnings) ) => {
179179 // 显示警告信息
180180 if !warnings. is_empty ( ) {
181- println ! ( "编译警告 :" ) ;
181+ println ! ( "解析警告 :" ) ;
182182 for ( i, warning) in warnings. iter ( ) . enumerate ( ) {
183183 println ! ( "警告 {}: {}" , i+1 , warning) ;
184184 }
@@ -191,7 +191,7 @@ fn main() {
191191 } ,
192192 Err ( errors) => {
193193 // 显示所有错误信息
194- println ! ( "发现 {} 个编译错误 :" , errors. len( ) ) ;
194+ println ! ( "发现 {} 个解析错误 :" , errors. len( ) ) ;
195195
196196 // 简单直接地显示错误
197197 for ( i, error) in errors. iter ( ) . enumerate ( ) {
@@ -206,7 +206,7 @@ fn main() {
206206 }
207207
208208 println ! ( "\n 可以使用 --cn-parser 选项查看更详细的解析信息。" ) ;
209- println ! ( "由于存在编译错误 ,程序无法执行。" ) ;
209+ println ! ( "由于存在解析错误 ,程序无法执行。" ) ;
210210 }
211211 }
212212 } ,
You can’t perform that action at this time.
0 commit comments