Bring back the rewriter sample.

With thanks to Bartosz Przemysław Bielawski who fixed it to build and run with
an up-to-date Clang.