Say I have an expression block like the following:
quote
x = foo(args...)
y = otherpackage.bar(args...)
end
I would like to turn that into the following:
quote
x = Module.foo(args...)
y = Module.otherpackage.bar(args...)
end
This is a pretty simple example, but I want it to be robust and be able to parse all function calls and stick the Module
in front of them.
For reference, I am trying to fix this issue in Handcalcs Function Limitations. You will have to scroll down to the bottom of the section linked. The linked issue I am referring to:
- If the function has other function calls within it’s body that are not available in Main, then the macro will error.