I am trying to create a macro which is capable of (probably recursively) turn a function into expressions so as to reach the operations applied within that function.
As a visualization:
function sampleFunc(x)
println(x)
y = 2x
return 2y* x
end
@macroIcannotImplement sampleFunc(x)
Desired Output:
quote
println(x)
y = 2x
return 2y* x
end
Does Julia support such an extraction or should I start searching for other ways?