文件
Paze AI d4b6fdc1f3 feat: C++ 阶段 2 - 运算符重载支持
- 成员运算符: Class::operator+ -> Cls_add (类内定义 + 外部定义)
- 自由运算符: Vec operator+(Vec a, Vec b) -> Cls_add(struct Cls *this, struct Cls b)
  首参重写为 this, 函数体内引用重写 (a.x -> this->x)
- 表达式转换: var = a op b -> var = Cls_op(&a, b); var1 op var2 -> Cls_op(&v1, v2)
- 修复: struct 类路由到 parse_class (消除 T_STRUCT 逐字复制死循环)
- 修复: 局部类变量 Complex r; 非破坏性 peek (read_tok 重写)
- 修复: 多声明符 Cls a, b; 记录所有变量
- 修复: 无 ctor 类的运算符赋值不再被 has_ctor 门槛挡住
- 修复: 外部定义 Counter::inc() 丢失 next_tok 回归
- 新: 派生类 ctor 自动链式调用基类默认 ctor
- 新: tokenizer 跳过 UTF-8 BOM
2026-08-16 18:01:23 +08:00
..