Hey Ethan, what you are looking for is include_string:

julia> include_string("""
       a = 1
       b = 2
       a + b
       """)
3

julia> a
1

julia> b
2

On Thursday, February 6, 2014 7:47:14 PM UTC-5, Ethan Anderes wrote:
>
> +1 for the question of a multi-line parse. My motivation was a bit 
> different in that I was trying to program a %paste equivalent from ipython 
> to julia. Of course the following doesn't work without multi-line behavior
>
> ```
> macro paste() 
>         eval(parse(clipboard())) 
> end
> ```
>

Reply via email to