Hey folks! I’ve been working on some tools to build other tools lately. One of the things that came out of that was an AST search tool I’m calling tree-grepper. It sits on top of tree-sitter grammars and exposes the tree-sitter s-expression query API. I’m using it at NoRedInk on our giant production codebase and it’s quite fast, so I imagine it will be similarly fast on other codebases too!
Here’s a blog post I’ve written about it with some code samples:
And the repo:
Side note: I just know there’s an AST-based code transformation/refactoring tool out there that has Elm support. I wanted to include it in this post, but I just couldn’t find it again! Does anyone know what I’m talking about? If so, could you share the link here?