Skip to content

Comment on Ripgrep 14 Releasedparent

Comments

have you looked at semgrep? This isn't the same thing but is similarly poking at the whole "ASTs are a thing we want to grep at" problem

Thanks for the pointer. There are definitely a few tools that have explored the idea of searching the AST of code. Semgrep seems to do that, as does a tool called ast-grep [0].

Both of them are sort of doing the opposite of my tool. They are letting you specify your search as a chunk of code/AST.

My tool let's you grep a regex as usual, but shows you the matches in a helpful AST aware way.

[0] https://ast-grep.github.io/

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.