About Anaconda Help Download Anaconda

ast-grep(sg) is a CLI tool for code structural search, lint, and rewriting.

copied from cf-post-staging / ast-grep

Installers

  • linux-64 v0.39.3
  • osx-64 v0.39.3
  • osx-arm64 v0.39.3
  • linux-ppc64le v0.39.3
  • linux-aarch64 v0.39.3

conda install

To install this package run one of the following:
conda install conda-forge::ast-grep

Description

ast-grep is an 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.


© 2025 Anaconda, Inc. All Rights Reserved. (v4.2.0) Legal | Privacy Policy