aboutsummaryrefslogtreecommitdiffstats
path: root/runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime.cpp')
-rw-r--r--runtime.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime.cpp b/runtime.cpp
index 8478da7..b4db6a8 100644
--- a/runtime.cpp
+++ b/runtime.cpp
@@ -1,11 +1,20 @@
#include "runtime.h"
+#include "value.h"
Runtime::Runtime() {
}
+/* Returns false if token is not a command */
+bool Runtime::runCommand(const Token& token) {
+ // TODO
+ return false;
+}
+
void Runtime::run(std::vector<Token>& tokens) {
for (auto& token : tokens) {
-
+ if (!runCommand(token)) {
+ Value value(token);
+ }
}
}