可以处理生成加法的IR

This commit is contained in:
jing
2025-12-28 18:44:48 +08:00
parent 77bee889d7
commit e941cced9b
42 changed files with 919 additions and 158 deletions

11
src/sem/Sema.h Normal file
View File

@@ -0,0 +1,11 @@
// 语义检查(极简版)。
#pragma once
#include <memory>
namespace ast {
struct CompUnit;
}
// 返回经过检查的 AST当前直接返回原 AST
std::shared_ptr<ast::CompUnit> RunSema(std::shared_ptr<ast::CompUnit> ast);