diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-04-03 02:46:12 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-04-03 02:46:12 +0800 |
| commit | 9ab592ce3765d07b6dbdb9c1d9b62dc8045e784e (patch) | |
| tree | 5b2bf93147980c5dabef80eff4c6209caa95f034 /include/atp/core/symbol_table.h | |
| parent | 1e35f078fe5ace02b22e6f4ba89f57ba4a58b8c9 (diff) | |
| download | ratp-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.h | 4 |
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 |
