From a7b36237d7c703c96b6a22c11cf37045d999fcc6 Mon Sep 17 00:00:00 2001 From: Cori Barker Date: Mon, 9 Feb 2026 11:05:11 +0000 Subject: Written some class declarations --- include/semantic/scope.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/semantic/scope.h') diff --git a/include/semantic/scope.h b/include/semantic/scope.h index aa13fe3..ff20542 100644 --- a/include/semantic/scope.h +++ b/include/semantic/scope.h @@ -5,12 +5,12 @@ class Scope { public: - explicit Scope(std::string name, int level, std::unique_ptr parent); + explicit Scope(std::string name, int level, *Scope parent); std::string getScopeName(); int getScopeLevel(); - std::unique_ptr getParentScope(); + *Scope getParentScope(); void define(Symbol symbol); - std::unique_ptr lookup(std::string name); + *Symbol lookup(std::string name); bool isDeclared(std::string name); std::unordered_map getAllSymbols(); std::string toString(); @@ -18,6 +18,6 @@ public: private: std::string scope_name; int scope_level - std::unique_ptr parent_scope; - std::unordered_map; + *Scope parent_scope; + std::unordered_map symbols; }; -- cgit v1.2.3