From 53e30cdd779f12ba5b19a59e9e18abf69c795ad5 Mon Sep 17 00:00:00 2001 From: jantuomi Date: Thu, 1 Sep 2016 13:47:24 +0300 Subject: Add sum function --- src/runtime.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/runtime.h') diff --git a/src/runtime.h b/src/runtime.h index af8351f..16c1c28 100644 --- a/src/runtime.h +++ b/src/runtime.h @@ -5,11 +5,14 @@ class Runtime { private: - std::stack m_values; - bool runCommand(const Token& token); + std::vector m_values; + void runCommand(const Token& token); + + void doSum(); public: Runtime(); void initValues(const std::vector& values); void run(std::vector& tokens); + void printValues() const; }; -- cgit v1.3