diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2016-08-31 20:05:10 +0000 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2016-08-31 20:05:10 +0000 |
| commit | c4cae690deddcb8a7fc6a537816e832525ca0e86 (patch) | |
| tree | 42a78dedb03d776e3945c1729a2e4b1d264ef2ed /runtime.cpp | |
| parent | 1ba5c17a68f13633d6a20785c722b22032ba45c4 (diff) | |
Develop runtime
Diffstat (limited to 'runtime.cpp')
| -rw-r--r-- | runtime.cpp | 11 |
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); + } } } |
