0.44.01Apache-2.0
strict
core24
AST based tool to search code by pattern code.
ast-grep is an abstract syntax tree based tool to search code by pattern code. Think of it as your old-friend
You can write patterns as if you are writing ordinary code. It will match all code that has the same syntactical structure.
You can use
Try the online playground for a taste! https://ast-grep.github.io/playground.html
grep, but matching AST nodes instead of text.You can write patterns as if you are writing ordinary code. It will match all code that has the same syntactical structure.
You can use
$ sign + upper case letters as a wildcard, e.g. $MATCH, to match any single AST node. Think of it as regular expression dot ., except it is not textual.Try the online playground for a taste! https://ast-grep.github.io/playground.html
Update History
0.44.0 (1)26 Jun 2026, 18:15 UTC
26 Jun 2026, 17:19 UTC
26 Jun 2026, 17:19 UTC
26 Jun 2026, 18:15 UTC