ast-grep
A fast and polyglot tool for code structural search and rewriting
Search & Grep
Rust
substitui grep (structural)
ast-grep (sg) is a CLI tool for code structural search, lint, and rewriting. It uses AST patterns instead of regex for accurate code matching.
Instalação
brew
brew install ast-grep
cargo
cargo install ast-grep
npm
npm install -g @ast-grep/cli
Ferramentas Relacionadas
ripgrep
Blazingly fast recursive search tool that respects gitignore
grepThe classic Unix pattern matching utility
The Silver SearcherA code searching tool similar to ack, but faster
ackA grep-like tool designed for searching source code
ugrepUltra fast grep with interactive TUI, fuzzy search, and more
sadCLI search and replace with preview, powered by diff
sdIntuitive find & replace CLI, a sed alternative