修复了大量存在的问题,增加了假鸭子类型等等机制

This commit is contained in:
2026-06-25 14:49:46 +08:00
parent 19f2787db0
commit d88d11b646
827 changed files with 32617 additions and 18316 deletions

View File

@@ -9,6 +9,7 @@
# - ExprGen.py: 表达式生成(常量、二元运算、返回)
# - FuncGen.py: 函数处理(参数调整、成员偏移)
# - VaArg.py: 变长参数处理
from __future__ import annotations
from lib.core.LLVMCG.BaseGen import BaseGenMixin, VaArgInstruction
from lib.core.LLVMCG.TypeConvert import TypeConvertMixin
@@ -43,4 +44,4 @@ class LlvmCodeGenerator(
# 向后兼容:重新导出常量和辅助类
__all__ = ['LlvmCodeGenerator', 'VaArgInstruction']
__all__: list[str] = ['LlvmCodeGenerator', 'VaArgInstruction']