aboutsummaryrefslogtreecommitdiffstats
path: root/runtime.cpp
blob: b4db6a81d6f8650f3da460bca999fe3510f55674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "runtime.h"
#include "value.h"

Runtime::Runtime() {

}

/* Returns false if token is not a command */
bool Runtime::runCommand(const Token& token) {
    // TODO
    return false;
}

void Runtime::run(std::vector<Token>& tokens) {
    for (auto& token : tokens) {
        if (!runCommand(token)) {
            Value value(token);
        }
    }
}