Expand description
Faithful port of runReplImpl from CLI/src/Repl.cpp, with the isocline
line editor replaced by rustyline.
isocline → rustyline mapping:
ic_set_default_completer(completeRepl, L)+ic_complete_wordbecome a rustylineHelperwhoseCompleter::completeruns the faithfulcomplete_replport (Luau’s global-table introspection).- The C++ multiline behavior — keep reading while
runCodereports a parse error ending in “” — becomes Validator::validatereturningValidationResult::Incompletefor the same incomplete-input condition, so the editor keeps reading lines within a singlereadlinecall. ic_set_history(path, -1)/ isocline’s auto-save becomeEditor::load_history+set_max_history_size+save_historyon exit;ic_history_addbecomesEditor::add_history_entry.