How the Debug Adapter Protocol Functions as a REPL Protocol
The article argues that the Debug Adapter Protocol (DAP), while designed for debugging, can effectively function as a REPL (Read-Eval-Print Loop) protocol. The author shares personal experience creating nluarepl (a Neovim Lua REPL using DAP) and hprofdap (a Java heap dump inspector using DAP), demonstrating how DAP's capabilities for evaluating expressions,