Omg sorry for all that noise, I don't know what happened! :( On Sun, Jan 4, 2015 at 11:54 AM, Darwin Darakananda <[email protected]> wrote:
> Thanks! That's exactly what I was looking for. The show_sexpr code > actually looks basically identical to what's in Base, I wonder why > sexpr_to_expr > didn't make it. > > On Sunday, January 4, 2015 3:10:15 AM UTC-8, [email protected] wrote: >> >> Not sure, but maybe this is what you are looking for, >> >> https://gist.github.com/toivoh/4121122 >> >> On Sunday, January 4, 2015 6:49:39 AM UTC+1, Darwin Darakananda wrote: >>> >>> Hi everyone, >>> >>> Is there currently a function that converts s-expressions into Expr >>> structures (basically the reverse of Base.Meta.show_sexpr)? >>> >>> I just started playing around with metaprogramming in Julia, so I'm >>> probably doing things wrong. But there are a lot of times where I end up >>> creating highly nested Expr objects, ending up with code that is >>> indecipherable. I've found that the output from show_sexpr is sometimes >>> easier to read that that of dump or xdump (which only seems to display the >>> first couple of levels). So I'm curious to see if the reverse >>> (s-expression -> Expr) is also true. >>> >>> If this function does not exist, would it be something that people would >>> find useful? >>> >>> Thanks and Happy New Years! >>> >>> Darwin >>> >>
