Lines Matching full:repl

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