repl.h 246 B

123456789101112131415161718
  1. #pragma once
  2. #include "compiler.h"
  3. #include "vm.h"
  4. namespace pkpy{
  5. class REPL {
  6. protected:
  7. int need_more_lines = 0;
  8. std::string buffer;
  9. VM* vm;
  10. public:
  11. REPL(VM* vm);
  12. bool input(std::string line);
  13. };
  14. } // namespace pkpy