From 41f1e410b7cc48db4ec0b99d9d2b49d2edb2a315 Mon Sep 17 00:00:00 2001 From: jantuomi Date: Thu, 1 Sep 2016 13:24:09 +0300 Subject: Implement runtime methods --- src/runtime.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/runtime.cpp') diff --git a/src/runtime.cpp b/src/runtime.cpp index 4edb3e6..26c5885 100644 --- a/src/runtime.cpp +++ b/src/runtime.cpp @@ -4,6 +4,12 @@ Runtime::Runtime() { } +void Runtime::initValues(const std::vector& values) { + for (const int i : values) { + m_values.push(i); + } +} + /* Returns false if token is not a command */ bool Runtime::runCommand(const Token& token) { // TODO -- cgit v1.3