julia> buf = IOBuffer(); julia> Base.show_unquoted(buf, Expr(:(=), Expr(:call, :inc2, :x), Expr(:call, :+, :x, 1)));
julia> takebuf_string(buf) "inc2(x) = x + 1" See also: https://github.com/JuliaLang/julia/issues/2017 On Sun, Jun 21, 2015 at 11:04 AM, jiyinyiyong <[email protected]> wrote: > No. I'm looking for a function that takes in Julia AST Expr and returns > Julia code in string, a opposite of the function `parse`. > > On Sun, Jun 21, 2015 at 10:55 PM Peter Brady <[email protected]> > wrote: > >> Are you looking for 'eval'? > >
