Pass readline and inspect functions to REPL