I faced very similar issues with ClobberingReload.jl. https://github.com/cstjean/ClobberingReload.jl/blob/master/src/ClobberingReload.jl Check out parse_file (courtesy of @stevengj), parse_module, and creload. I haven't "expanded" the includes, but it seems straight-forward to do with a comprehension.
On Saturday, September 24, 2016 at 1:30:31 AM UTC-4, Andreas Lobinger wrote: > > Hello colleagues, > > i'm playing around with some ideas for testing and i searching for > something like this: > > * read-in (from the original file or via name) a complete module (or > package) > * transform/parse to AST > * insert additional Expr/code in dedicated places (to count calls etc.) > * eval, so the module exists with the orginal name, but with more > functionality > > Any pointer to read? > > Wishing a happy day, > Andreas >