-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblockWrappers.h
48 lines (34 loc) · 999 Bytes
/
blockWrappers.h
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
47
48
#ifndef BLOCKWRAPPERS_H
#define BLOCKWRAPPERS_H
extern bool SHOW_DEBUGGING;
#include "enviroWrap.h"
#include "methodStorage.h"
#include "varStorage.h"
#include "tokenGroups.h"
#include <map>
#include <vector>
//################ PROTOTYPES ################//
class BlockWrap {
protected:
std::string codeInput;
EnviroWrap * environment; // declare (locally) global variable storage object
TokenGroup * sovtGroup;
public:
BlockWrap(std::string = "", const EnviroWrap * = NULL);
virtual ~BlockWrap();
void importDataStack(EnviroWrap *);
virtual void clearMemoryStack();
std::string executeCode();
};
class ClassWrap : public BlockWrap {
protected:
MethodStack * methods;
std::string classType; // the name of this class
std::vector<std::string> friends; // who has access to my shizz
public:
ClassWrap(std::string = "", std::string = "", const EnviroWrap * = NULL);
virtual ~ClassWrap();
void clearMemoryStack();
};
/// ################################ ///
#endif