Re: Execute a code segment during script compile

2020-02-23 Thread Paul King
Just for future reference, I'd probably start out with such a question on the users mailing list. There are more folks subscribed to that list and writing closures and transforms (using Groovy) are topics which that list covers. If it turned out that Groovy couldn't handle your use case, the dev

Execute a code segment during script compile

2020-02-23 Thread Saravanan Palanichamy
Hello Is it possible to do this in the groovy AST transformation -> a) in a code visitor, visit a closure expression (in the INSTRUCTION_SELECTION phase) b) Using the Closure Node, execute this code to determine its results based on different parameters Essentially I want to be able to

Re: Execute a code segment during script compile

2020-02-23 Thread Saravanan Palanichamy
On 2020/02/23 23:14:32, Paul King wrote: > Just for future reference, I'd probably start out with such a question on > the users mailing list. There are more folks subscribed to that list and > writing closures and transforms (using Groovy) are topics which that list > covers. If it turned