From c4cae690deddcb8a7fc6a537816e832525ca0e86 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Wed, 31 Aug 2016 20:05:10 +0000 Subject: Develop runtime --- runtime.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'runtime.cpp') 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& tokens) { for (auto& token : tokens) { - + if (!runCommand(token)) { + Value value(token); + } } } -- cgit v1.3