From 50bafbdd68160d00606a4e83d9759c21223c11f8 Mon Sep 17 00:00:00 2001 From: jantuomi Date: Thu, 1 Sep 2016 11:20:59 +0300 Subject: Restructure project --- src/runtime.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/runtime.cpp (limited to 'src/runtime.cpp') diff --git a/src/runtime.cpp b/src/runtime.cpp new file mode 100644 index 0000000..4edb3e6 --- /dev/null +++ b/src/runtime.cpp @@ -0,0 +1,19 @@ +#include "runtime.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)) { + + } + } +} -- cgit v1.3