blob: 06f259aae57212f59b857c7c763b75cdda70aac6 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef ARZU_INTERPRETER_MEMORY_DATA
#define ARZU_INTERPRETER_MEMORY_DATA
#include <list>
#include <string>
using namespace std;
class MemoryData {
public:
enum Type {
TNone,
TName,
TFunc,
TInt,
};
protected:
Type type;
public:
Type get_type() const;
MemoryData();
~MemoryData() = default;
};
struct Name : public MemoryData {
string value;
Name();
Name(string&);
};
struct Int : public MemoryData {
int value;
Int(int);
};
struct Function : public MemoryData {
list<string> argumentNames;
int scopeStart;
int scopeEnd;
Function(list<string>, int, int);
};
#endif
|