2 Mar
2009
2 Mar
'09
5:55 p.m.
Let's say I want to take an expression involving operators +,-,*,/ and a function split. What I want to do is writing a transform taking such an expression and returning a fusion::vector or list (I guess) of expressions containing all sub-expressions of the original AST only separated on each insatcne of a split call. E.g : Xpr = a+b+split( c*d + split(e-f)); is turned into Xprs = [ a+b+placeholder<1>, c*d+placeholder<2>, e-f]; I guess I should use the State/Data parameters of the transform but i can't get the thing right. Any hints on how to tackle this without losing hairs ? -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35