diff options
| author | Cori Barker <coribarker2@gmail.com> | 2026-02-22 22:24:27 +0000 |
|---|---|---|
| committer | Cori Barker <coribarker2@gmail.com> | 2026-02-22 22:24:27 +0000 |
| commit | 5c1f937a7eb7a9cc9cd86cb69b3263f41f24408f (patch) | |
| tree | 46154166a56f9a074c5b75dbb1a1b9560908b8f1 /include/semantic/symbol_table.hpp | |
| parent | 2cfc45ff22cd9b6166de3cf963aceede21b358aa (diff) | |
Partially completed lots of changes, refactoring most of the files
Diffstat (limited to 'include/semantic/symbol_table.hpp')
| -rw-r--r-- | include/semantic/symbol_table.hpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/semantic/symbol_table.hpp b/include/semantic/symbol_table.hpp deleted file mode 100644 index b2b8270..0000000 --- a/include/semantic/symbol_table.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#pragma once - -class SymbolTable { -public: - explicit SymbolTable(); - ~SymbolTable() = default; - void enterScope(std::string scope_name); - void exitScope(); - Scope* getCurrentScope(); - Scope* getGlobalScope(); - int getScopeLevel(); - void insert(Symbol symbol); - Symbol* lookup(std::string name); - Symbol* lookupCurrentScope(std::string name); - bool isDeclared(std::string name); - bool isDeclaredInCurrentScope(std::string name); - void display(); - std::string toString(); - -private: - std::vector<std::unique_ptr<Scope>> scopes; - Scope* current_scope; - int scope_level; - Scope* global_scope; -}; |
