// 语义检查(极简版)。 #pragma once #include namespace ast { struct CompUnit; } // 返回经过检查的 AST(当前直接返回原 AST)。 std::shared_ptr RunSema(std::shared_ptr ast);