Comby is a tool for searching and changing code structure
(comby.dev)
from paequ2@lemmy.today to programming@programming.dev on 12 Aug 07:24
https://lemmy.today/post/35489058
from paequ2@lemmy.today to programming@programming.dev on 12 Aug 07:24
https://lemmy.today/post/35489058
I just used this to update 600 lines, across 33 files! It worked great!
#programming
threaded - newest
ast-grep is worth checking out too: ast-grep.github.io
Some very quick, superficial differences:
ast-grep
uses tree-sitter for understanding languagesast-grep
is written in Rustast-grep
uses YAML for configast-grep
more normal–flags
comby
doesn’t use tree-sitter and does it’s own thing… not sure what to think of this approachcomby
is written in OCamlcomby
uses TOML for configcomby
uses-single-dash-flags
both have online playgrounds for testing
I personally hate YAML, so it’s
comby
for me! (For now.)Also, here’s what Comby says about its approach to matching: comby.dev/docs/faq
Fair enough. I hate YAML too, but I’m stuck with Python for now and Comby doesn’t handle indentation too well (it’s in their FAQ).
Oh, yeah makes sense. Thankfully, I’m refactoring Go!