aboutsummaryrefslogtreecommitdiff
path: root/include/symbol_table.hpp
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-03-07 18:33:21 +0000
committerCori Barker <coribarker2@gmail.com>2026-03-07 18:33:21 +0000
commit50a51df0404ee4f057fbc19657672d1c7d3eef68 (patch)
tree9cb9ed4572a357448f2b78c4ac0add7eaf6a1e7e /include/symbol_table.hpp
parent6761fdd434a7e54551fe28398361f9eed5268406 (diff)
removed implementations of symbol table related classes, need to fix the parser to use the new AST node classes then i can write the symbol table classes and refactor the lexer and parser to use the symbol table
Diffstat (limited to 'include/symbol_table.hpp')
-rw-r--r--include/symbol_table.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/symbol_table.hpp b/include/symbol_table.hpp
index 55de65a..42c6cd7 100644
--- a/include/symbol_table.hpp
+++ b/include/symbol_table.hpp
@@ -1,12 +1,14 @@
#pragma once
+#include "scope.hpp"
+
+#include <vector>
+
class SymbolTable {
public:
-
+ explicit SymbolTable();
+ void addScope(Scope* scope);
private:
- std::vector<Scope> scopes;
- Scope* current_scope;
-
-
+ std::vector<Scope*> scopes;
};