BPatterns: Rewrite Engine with Smalltalk style

The rewrite engine is an absolutely brilliant invention by John Brant and Don Roberts, introduced with the Refactoring Browser (see “A Refactoring Tool for Smalltalk”, 1997 ). It gives us AST-level matching and rewriting with astonishing power. But let’s be honest: how many people actually remember its syntax? Even the simplest rewrite rule—say, replacing a deprecated message with a new…