chore(misc): 按目录结构设计初始化工程骨架

This commit is contained in:
Lane0218
2025-12-27 14:37:52 +08:00
parent b30c963eb7
commit cf2e6e0b46
46 changed files with 195 additions and 0 deletions

4
src/sem/ConstEval.cpp Normal file
View File

@@ -0,0 +1,4 @@
// 常量求值:
// - 处理数组维度、全局初始化、const 表达式等编译期可计算场景
// - 为语义分析与 IR 生成提供常量折叠/常量值信息

5
src/sem/Sema.cpp Normal file
View File

@@ -0,0 +1,5 @@
// 语义分析主流程:
// - 符号解析与绑定、类型检查、控制流规则检查
// - 记录/插入必要的隐式转换(或在节点上标注)
// - 输出为“带类型 / 符号 / 常量信息”的 AST

4
src/sem/SymbolTable.cpp Normal file
View File

@@ -0,0 +1,4 @@
// 符号表与作用域管理:
// - 支持嵌套作用域(块/函数/全局)
// - 变量/函数/参数/常量的注册、查找与遮蔽规则