-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMiniInterpreter.cpp
More file actions
47 lines (38 loc) · 1.69 KB
/
MiniInterpreter.cpp
File metadata and controls
47 lines (38 loc) · 1.69 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include <iostream>
#include <vector>
#include <fstream>
#include <iomanip>
#include <tuple>
#include <cctype>
#include <string>
#include <tuple>
#include "Interpreter.h"
/*
/$$ /$$ /$$ /$$ /$$$$$$ /$$ /$$
| $$$ /$$$|__/ |__/ |_ $$_/ | $$ | $$
| $$$$ /$$$$ /$$ /$$$$$$$ /$$ | $$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
| $$ $$/$$ $$| $$| $$__ $$| $$ | $$ | $$__ $$|_ $$_/ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$ /$$__ $$|_ $$_/ /$$__ $$ /$$__ $$
| $$ $$$| $$| $$| $$ \ $$| $$ | $$ | $$ \ $$ | $$ | $$$$$$$$| $$ \__/| $$ \ $$| $$ \__/| $$$$$$$$ | $$ | $$$$$$$$| $$ \__/
| $$\ $ | $$| $$| $$ | $$| $$ | $$ | $$ | $$ | $$ /$$| $$_____/| $$ | $$ | $$| $$ | $$_____/ | $$ /$$| $$_____/| $$
| $$ \/ | $$| $$| $$ | $$| $$ /$$$$$$| $$ | $$ | $$$$/| $$$$$$$| $$ | $$$$$$$/| $$ | $$$$$$$ | $$$$/| $$$$$$$| $$
|__/ |__/|__/|__/ |__/|__/ |______/|__/ |__/ \___/ \_______/|__/ | $$____/ |__/ \_______/ \___/ \_______/|__/
| $$
| $$
|__/
*/
/*
WIP
Made by Kernels
An experimental C++ interpreter for a minimal instruction language, focusing on execution flow, parsing, and VM fundamentals.
*/
std::vector<std::string> test_instructions = { // Test instruction set
"push 5",
"sprint 0",
"neg 0",
"sprint 0"
};
// To add binary reading
int main()
{
Interpreter::Interpret(test_instructions);
}