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/scope.hpp | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'include/scope.hpp') diff --git a/include/scope.hpp b/include/scope.hpp index ff20542..7d66f0f 100644 --- a/include/scope.hpp +++ b/include/scope.hpp @@ -1,23 +1,11 @@ #pragma once -#include -#include - class Scope { public: - explicit Scope(std::string name, int level, *Scope parent); - std::string getScopeName(); - int getScopeLevel(); - *Scope getParentScope(); - void define(Symbol symbol); - *Symbol lookup(std::string name); - bool isDeclared(std::string name); - std::unordered_map getAllSymbols(); - std::string toString(); + explicit Scope(int scope_level); private: - std::string scope_name; - int scope_level - *Scope parent_scope; - std::unordered_map symbols; + std::vector symbols; + int scope_level; + }; -- cgit v1.2.3