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

class Runtime {
    private:
        std::stack<int> m_values;
        bool runCommand(const Token& token);

    public:
        Runtime();
        void initValues(const std::vector<int>& values);
        void run(std::vector<Token>& tokens);
};