aboutsummaryrefslogtreecommitdiffstats
path: root/src/runtime.h
blob: 16c1c281300db2e14fd96751799312e4dc4bcdf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once
#include <vector>
#include <stack>
#include "token.h"

class Runtime {
    private:
        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;
};