aboutsummaryrefslogtreecommitdiffstats
path: root/runtime.h
blob: 35723914735fadbc2991505d3c95964925b05280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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 run(std::vector<Token>& tokens);
};