>
>  if there is any way to do something similar with the body of an anonymous
> function short of bushwacking through the AST object in its `code` field?
> I'd actually like to access just the body as an Expr object.


Not that I can think of off the top... I'm not sure where else a reference
to the AST could "live".

On Sun, Jun 21, 2015 at 4:19 PM, David Gold <[email protected]> wrote:

> @Isaiah,
>
> Thank you for that resource. Shamelessly hijacking this topic a bit, do
> you know if there is any way to do something similar with the body of an
> anonymous function short of bushwacking through the AST object in its
> `code` field? I'd actually like to access just the body as an Expr object.
>
> On Sunday, June 21, 2015 at 1:31:22 AM UTC-4, Jiyin Yiyong wrote:
>
>> As described in http://blog.leahhanson.us/julia-introspects.html Julia
>> parses code to AST.
>> But is there function provided to generate code back?
>>
>> I checked on Google and the docs, but found nothing so far.
>> http://docs.julialang.org/en/release-0.3/stdlib/base/
>>
>>

Reply via email to