Simon Willison’s Weblog

Subscribe

Wednesday, 18th May 2022

Comby (via) Describes itself as “Structural search and replace for any language”. Lets you execute search and replace patterns that look a little bit like simplified regular expressions, but with some deep OCaml-powered magic that makes them aware of comment, string and nested parenthesis rules for different languages. This means you can use it to construct scripts that automate common refactoring or code upgrade tasks.

# 5:47 am / parsing, refactoring

2022 » May

MTWTFSS
      1
2345678
9101112131415
16171819202122
23242526272829
3031