refactor(dev): 移动头文件位置

This commit is contained in:
jing
2026-03-12 10:34:02 +08:00
parent 7f1b0aaead
commit d0a4c7d6d2
8 changed files with 1 additions and 1 deletions

17
include/sem/SymbolTable.h Normal file
View File

@@ -0,0 +1,17 @@
// 极简符号表:记录局部变量定义点。
#pragma once
#include <string>
#include <unordered_map>
#include "SysYParser.h"
class SymbolTable {
public:
void Add(const std::string& name, SysYParser::VarDeclContext* decl);
bool Contains(const std::string& name) const;
SysYParser::VarDeclContext* Lookup(const std::string& name) const;
private:
std::unordered_map<std::string, SysYParser::VarDeclContext*> table_;
};