repl.h 224 B

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