blueloveTH 1f7a7c8606 ...
2023-07-08 17:30:15 +08:00

20 lines
292 B
C++

#pragma once
#include "compiler.h"
#include "vm.h"
namespace pkpy{
std::string platform_getline(bool* eof=nullptr);
class REPL {
protected:
int need_more_lines = 0;
std::string buffer;
VM* vm;
public:
REPL(VM* vm);
bool input(std::string line);
};
} // namespace pkpy