aboutsummaryrefslogtreecommitdiffstats
path: root/src/runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/runtime.h b/src/runtime.h
new file mode 100644
index 0000000..3572391
--- /dev/null
+++ b/src/runtime.h
@@ -0,0 +1,14 @@
+#pragma once
+#include <vector>
+#include <stack>
+#include "token.h"
+
+class Runtime {
+ private:
+ std::stack<int> m_values;
+ bool runCommand(const Token& token);
+
+ public:
+ Runtime();
+ void run(std::vector<Token>& tokens);
+};