summaryrefslogtreecommitdiff
path: root/runtime.h
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-08-25 20:51:03 +0200
committertomsmeding <hallo@tomsmeding.nl>2015-08-25 20:51:03 +0200
commit5e8a7aad13b6442d2acf9113eb576a1ea4c22ab3 (patch)
tree72a36d0e6d53cf9ec5afc66dbcf3bf2b217c98c2 /runtime.h
parent7fab11f595d7c75ad4f859fb9af9d06b931a1b14 (diff)
Refactor
Diffstat (limited to 'runtime.h')
-rw-r--r--runtime.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/runtime.h b/runtime.h
new file mode 100644
index 0000000..1a49300
--- /dev/null
+++ b/runtime.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <fstream>
+#include <vector>
+#include <string>
+
+using namespace std;
+
+struct Stackitem{
+ bool isstr;
+ string strval;
+ int intval;
+
+ Stackitem(void);
+ Stackitem(int _i);
+ Stackitem(const string &_s);
+ Stackitem(const Stackitem&);
+ Stackitem(Stackitem &&other);
+ Stackitem& operator=(const Stackitem&);
+ Stackitem& operator=(Stackitem &&other);
+ explicit operator bool(void) const;
+ bool operator==(const Stackitem &other) const;
+};
+
+vector<string> tokenise(istream &stream);
+void run(vector<string> T);