summaryrefslogtreecommitdiff
path: root/src/MemoryData.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MemoryData.cpp')
-rw-r--r--src/MemoryData.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/MemoryData.cpp b/src/MemoryData.cpp
new file mode 100644
index 0000000..34e2877
--- /dev/null
+++ b/src/MemoryData.cpp
@@ -0,0 +1,24 @@
+#include "MemoryData.h"
+#include <cstring>
+
+MemoryData::Type MemoryData::get_type() const {
+ return this->type;
+}
+
+MemoryData::MemoryData() : type(TNone) {}
+
+Name::Name() : value() {
+ this->type = TName;
+}
+
+Name::Name(string& str) : value(str) {
+ this->type = TName;
+}
+
+Int::Int(int num) : value(num) {
+ this->type = TInt;
+}
+
+Function::Function(list<string> argNames, int scopeStart, int scopeEnd) : argumentNames(argNames), scopeStart(scopeStart), scopeEnd(scopeEnd) {
+ this->type = TFunc;
+}