Re: [Pharo-users] Modifying the AST of a method

2015-09-08 Thread Marcus Denker
> On 08 Sep 2015, at 03:02, Sean P. DeNigris wrote: > > From Günter Khyo: > > Günter Khyo wrote >> Hello! >> >> I want to replace particular nodes of an AST (such as Assignments or Self >> sends) with my own nodes. >> Is there an easy (high-level) way to do this without being familiar with >

Re: [Pharo-users] Modifying the AST of a method

2015-09-07 Thread Thierry Goubier
Hi Günter, Sean, have a look at Jejak (https://github.com/ThierryGoubier/Jejak), it does exactly what you describe: take a method, scan the ast, rewrite some of the nodes (i.e. inject new ast nodes), recompile the method... uninstall the modified method. Ask me if you have any question about