aboutsummaryrefslogtreecommitdiffstats
path: root/src/runtime.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.h')
-rw-r--r--src/runtime.h7
1 files changed, 5 insertions, 2 deletions
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<int> m_values;
- bool runCommand(const Token& token);
+ std::vector<int> m_values;
+ void runCommand(const Token& token);
+
+ void doSum();
public:
Runtime();
void initValues(const std::vector<int>& values);
void run(std::vector<Token>& tokens);
+ void printValues() const;
};