aboutsummaryrefslogtreecommitdiff
path: root/include/semantic/symbol.h
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-02-09 11:59:14 +0000
committerCori Barker <coribarker2@gmail.com>2026-02-09 11:59:14 +0000
commitb3f83360282bfe327c0ccbeecab706e0e7d2c050 (patch)
tree1ab29e9ebbf3d3f2fb66f59cbbc687451f8da62e /include/semantic/symbol.h
parent26738e6c932038ea309a5dbaa9e941fc1ce144b8 (diff)
Changed .h to .hpp
Diffstat (limited to 'include/semantic/symbol.h')
-rw-r--r--include/semantic/symbol.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/include/semantic/symbol.h b/include/semantic/symbol.h
deleted file mode 100644
index 94fe918..0000000
--- a/include/semantic/symbol.h
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-#include <string>
-#include <vector>
-
-#include "symbol_type.h"
-
-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;
-};