On Saturday, June 28, 2014 4:40:21 PM UTC-4, Laszlo Hars wrote:
>
> One application of it is my AutoHotkey macro for MS Word. It has three 
> hotkeys. #1: takes the text from the caret backwards to a prescribed string 
> (double space), and passes this to Julia, replacing the selection with the 
> result.
>

Rather than using the REPL, wouldn't it be far easier just to write a tiny 
Julia script that reads strings, executes them, and prints the result (or 
puts it on the clipboard or whatever)?   e.g.


      while true
       println("RESULT: ", eval(parse(readline())))
       end

You could easily modify this with a try...catch block to catch exceptions 
and do whatever you want with it, etcetera.      It seems like this would 
be easier and much more flexible than hacking the REPL.

Reply via email to