aboutsummaryrefslogtreecommitdiff
path: root/include/atp/core/symbol_table.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-04-03 02:46:12 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-04-03 02:46:12 +0800
commit9ab592ce3765d07b6dbdb9c1d9b62dc8045e784e (patch)
tree5b2bf93147980c5dabef80eff4c6209caa95f034 /include/atp/core/symbol_table.h
parent1e35f078fe5ace02b22e6f4ba89f57ba4a58b8c9 (diff)
downloadratp-9ab592ce3765d07b6dbdb9c1d9b62dc8045e784e.tar.gz
ratp-9ab592ce3765d07b6dbdb9c1d9b62dc8045e784e.tar.xz
feat: implement core term, symbol, and clause storage logic with canonicalization support
Diffstat (limited to 'include/atp/core/symbol_table.h')
-rw-r--r--include/atp/core/symbol_table.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/atp/core/symbol_table.h b/include/atp/core/symbol_table.h
index ed27a4d..856c395 100644
--- a/include/atp/core/symbol_table.h
+++ b/include/atp/core/symbol_table.h
@@ -23,8 +23,10 @@
/// @brief Bidirectional mapping between symbol names and SymbolIds,
/// with kind and sort metadata.
+#include <deque>
#include <string>
#include <string_view>
+#include <unordered_map>
#include "atp/core/types.h"
@@ -63,6 +65,8 @@ class SymbolTable {
private:
// TODO: Phase 1 implementation
+ std::deque<SymbolInfo> infos_;
+ std::unordered_map<std::string_view, SymbolId> name_to_id_;
};
} // namespace atp