FSE/app/Interactive.cpp
2024-03-30 09:47:47 +03:00

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;
}