aboutsummaryrefslogtreecommitdiff
path: root/include/semantic/symbol.hpp
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-02-22 22:24:27 +0000
committerCori Barker <coribarker2@gmail.com>2026-02-22 22:24:27 +0000
commit5c1f937a7eb7a9cc9cd86cb69b3263f41f24408f (patch)
tree46154166a56f9a074c5b75dbb1a1b9560908b8f1 /include/semantic/symbol.hpp
parent2cfc45ff22cd9b6166de3cf963aceede21b358aa (diff)
Partially completed lots of changes, refactoring most of the files
Diffstat (limited to 'include/semantic/symbol.hpp')
-rw-r--r--include/semantic/symbol.hpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/include/semantic/symbol.hpp b/include/semantic/symbol.hpp
deleted file mode 100644
index 4bee45d..0000000
--- a/include/semantic/symbol.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include "symbol_type.hpp"
-
-class Symbol {
-public:
- explicit Symbol(std::string name, SymbolType type, std::string data_type, int scope_level);
- std::string getName();
- SymbolType getSymbolType();
- std::string getDataType();
- int getScopeLevel();
- bool isInitialized();
- void setInitialized(bool init);
- bool isParameter();
- void setParameter(bool is_param);
- std::vector<std::string> getParameterTypes();
- void setParameterTypes(std::vector<std::string> types);
- std::string getReturnType();
- void setReturnType(std::string type);
- int getLineDeclared();
- void setLineDeclared(int line);
- std::string toString();
-
-private:
- std::string symbol_name;
- SymbolType symbol_type;
- std::string data_type;
- int scope_level;
- bool is_initialized;
- bool is_parameter;
- std::vector<std::string> parameter_types;
- std::string return_type;
- int line_declared;
- int column_declared;
-};