Started working on a portable and generic/extensible REPL implementation.
I want to work on it further to add stuff for ANSI terminals and so on, but it's already pretty well along with proper handling of multi-line input, values, and a pretty capable debugger that can handle recursive errors and frame locals inspection.