blob: 34e28772c37e9d4584e7aa1a3095b7c06c7c2377 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}
|