Re: [Pharo-users] RewriteTool matching parts of an array

2016-08-11 Thread Peter Uhnák
Nvm, I've misread it. Ok, I will do it manually then, and submit a bug report. :) Thanks, Peter On Thu, Aug 11, 2016 at 3:31 PM, Peter Uhnák wrote: > I get the exact same error when executing the script, I am running this on > Pharo 5 (50760) btw. > > On Thu, Aug 11, 2016 at 3:15 PM, Mark Riz

Re: [Pharo-users] RewriteTool matching parts of an array

2016-08-11 Thread Peter Uhnák
I get the exact same error when executing the script, I am running this on Pharo 5 (50760) btw. On Thu, Aug 11, 2016 at 3:15 PM, Mark Rizun wrote: > Hi Peter, > > I tried to perform this transformation with RewriteTool and got the same > DNU. > > >> However when I tried to execute it I was met w

Re: [Pharo-users] RewriteTool matching parts of an array

2016-08-11 Thread Mark Rizun
Hi Peter, I tried to perform this transformation with RewriteTool and got the same DNU. > However when I tried to execute it I was met with DNU > OrderedCollection>>parent: > > It seems that the @first/@second part are not matched properly. > Actually they are matched properly, because if you t

[Pharo-users] RewriteTool matching parts of an array

2016-08-11 Thread Peter Uhnák
Hi, I wanted to use RewriteTool to rewrite dynamic arrays Source AST: | base | base := {#Department -> {710 @ 255. Color lightMagenta}} matching AST: | base | base := {#Department -> {``@first. ``@second}} transformation: | base | base := {#Department -> (Array with: ``@first with: ``@second)}