blob: 26c588551d0d4bbb1e1fec6413a38e673459fdce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "runtime.h"
Runtime::Runtime() {
}
void Runtime::initValues(const std::vector<int>& values) {
for (const int i : values) {
m_values.push(i);
}
}
/* 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)) {
}
}
}
|