Lines Matching defs:REPL

1 //===-- REPL.cpp ----------------------------------------------------------===//
9 #include "lldb/Expression/REPL.h"
25 char REPL::ID;
27 REPL::REPL(Target &target) : m_target(target) {
36 REPL::~REPL() = default;
38 lldb::REPLSP REPL::Create(Status &err, lldb::LanguageType language,
59 std::string REPL::GetSourcePath() {
73 lldb::IOHandlerSP REPL::GetIOHandler() {
77 debugger, IOHandler::Type::REPL,
82 true, // The REPL prompt is always colored
102 void REPL::IOHandlerActivated(IOHandler &io_handler, bool interactive) {
107 error_sp->Printf("REPL requires a running target process.\n");
111 bool REPL::IOHandlerInterrupt(IOHandler &io_handler) { return false; }
113 void REPL::IOHandlerInputInterrupted(IOHandler &io_handler, std::string &line) {
116 const char *REPL::IOHandlerGetFixIndentationCharacters() {
120 llvm::StringRef REPL::IOHandlerGetControlSequence(char ch) {
127 const char *REPL::IOHandlerGetCommandPrefix() { return ":"; }
129 const char *REPL::IOHandlerGetHelpPrologue() {
130 return "\nThe REPL (Read-Eval-Print-Loop) acts like an interpreter. "
135 "must be prefixed with a colon at the REPL prompt (:quit for "
141 bool REPL::IOHandlerIsInputComplete(IOHandler &io_handler, StringList &lines) {
150 // Check if REPL input is done
155 int REPL::CalculateActualIndentation(const StringList &lines) {
168 int REPL::IOHandlerFixIndentation(IOHandler &io_handler,
183 int actual_indent = REPL::CalculateActualIndentation(lines);
221 void REPL::IOHandlerInputComplete(IOHandler &io_handler, std::string &code) {
270 IOHandler::Type::REPL, IOHandler::Type::CommandInterpreter)) {
283 IOHandler::Type::REPL, IOHandler::Type::CommandInterpreter)) {
285 // command interpreter is what launched the REPL, then just let the
286 // REPL exit and fall back to the command interpreter.
289 // The REPL wasn't launched the by the command interpreter, it is the
308 // Unwind any expression we might have been running in case our REPL
471 // Now set the default file and line to the REPL source file
485 // Don't complain about the REPL process going away if we are in the
489 "error: REPL process is no longer alive, exiting REPL\n");
495 void REPL::IOHandlerComplete(IOHandler &io_handler,
558 Status REPL::RunLoop() {
580 // Check if we are in dedicated REPL mode where LLDB was start with the "--
585 // dedicated REPL mode...
598 // Wait for the REPL command interpreter to get popped
602 // If we were in dedicated REPL mode we would have started the IOHandler