ast-grep (devel/ast-grep) Updated: 1 week, 3 days ago Add to my watchlist

A CLI tool for code structural search, lint and rewriting.

ast-grep is a AST-based tool to search code by pattern code. Think it as your old-friend grep but it matches 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 wildcard, e.g. $MATCH, to match any single AST node. Think it as REGEX dot ., except it is not textual.

Version: 0.30.0 License: MIT GitHub
Maintainers herbygillot
Categories devel textproc
Homepage https://ast-grep.github.io/
Platforms darwin
Variants
  • universal (Build for multiple architectures)

"ast-grep" depends on

lib (1)
build (4)

Ports that depend on "ast-grep"

No ports


Port Health:

Loading Port Health

Installations (30 days)

2

Requested Installations (30 days)

2