diff options
Diffstat (limited to 'include/semantic/scope.hpp')
| -rw-r--r-- | include/semantic/scope.hpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/include/semantic/scope.hpp b/include/semantic/scope.hpp deleted file mode 100644 index ff20542..0000000 --- a/include/semantic/scope.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#pragma once - -#include <string> -#include <memory> - -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<std::string, Symbol> getAllSymbols(); - std::string toString(); - -private: - std::string scope_name; - int scope_level - *Scope parent_scope; - std::unordered_map<std::string, Symbol> symbols; -}; |
