From 6761fdd434a7e54551fe28398361f9eed5268406 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Sat, 7 Mar 2026 17:46:38 +0000 Subject: code is a complete mess, simplified some classes as they are way too complex will expand in future but too complicated for now since its the first version. --- include/symbol_table.hpp | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'include/symbol_table.hpp') diff --git a/include/symbol_table.hpp b/include/symbol_table.hpp index b2b8270..55de65a 100644 --- a/include/symbol_table.hpp +++ b/include/symbol_table.hpp @@ -2,24 +2,11 @@ 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> scopes; + std::vector scopes; Scope* current_scope; - int scope_level; - Scope* global_scope; + + }; -- cgit v1.2.3