This is a tool to make custom REPL modes in Julia.
First, generate a new REPL Prompt:
c = generate_custom_repl("custom> ") # Many kwargs available, see source
You can then register statements and associate them with functions
register!(c, "print"=>println)
Finally, add the Prompt to the REPL list, choose a prefix and you're good to go.
add_repl_mode(c, raw"$")
julia> $
custom> print someword
someword