24 lines
No EOL
365 B
C++
24 lines
No EOL
365 B
C++
#include "Interpreter.hpp"
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
int main() {
|
|
Interpreter interpreter;
|
|
std::string line;
|
|
|
|
std::cout << "File System emulator. Enter 'stop' to exit\n";
|
|
|
|
while (true) {
|
|
std::cout << ">> ";
|
|
std::getline(std::cin, line);
|
|
|
|
if (line == "stop") {
|
|
break;
|
|
}
|
|
|
|
interpreter.interpret(line);
|
|
}
|
|
|
|
return 0;
|
|
} |