Rewriting pragmas

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Rewriting pragmas

Holger Kleinsorgen
Hello,

is it possible to rewrite pragmas with the rewrite tool (or any other tool)?

I tried the regex tool as a workaround, but it's difficult to use due to the greedy matching behavior. The methods that I want to rewrite contain several pragmas.
Reply | Threaded
Open this post in threaded view
|

Re: Rewriting pragmas

Randy Coulman
Holger,

I did something similar a while back.  Does this blog post help?


You might have to be somewhat creative with your regexes to get non-greedy matching.  I don't think Regex11 supports modifiers for non-greedy, but I haven't explicitly look for that, so maybe it does.

Randy


On Wed, Jul 23, 2014 at 2:21 AM, Holger Kleinsorgen <[hidden email]> wrote:
Hello,

is it possible to rewrite pragmas with the rewrite tool (or any other tool)?

I tried the regex tool as a workaround, but it's difficult to use due to the
greedy matching behavior. The methods that I want to rewrite contain several
pragmas.



--
View this message in context: http://forum.world.st/Rewriting-pragmas-tp4769517.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc



--
Randy Coulman
Email: [hidden email]
Home: http://randycoulman.com
Twitter: @randycoulman      GitHub: randycoulman

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc