summaryrefslogtreecommitdiff
path: root/runtime.h
diff options
context:
space:
mode:
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);