ast-grep

Code transformer

A tool for code structural search and transformation using abstract syntax trees

⚡A CLI tool for code structural search, lint and rewriting. Written in Rust

GitHub

8k stars
24 watching
175 forks
Language: Rust
last commit: over 1 year ago
Linked from 2 awesome lists

astbabelcodemodcodereviewcommand-linecommand-line-toolgreplinterrefactoringrustsearchstatic-analysisstructural-searchtree-sittertypescript

Backlinks from these awesome lists:

Related projects:

Repository Description Stars
pemistahl/grex Automatically generates regular expressions from user-provided test cases 7,334
jonatas/fast Tools to search and refactor Ruby code directly in its abstract syntax tree 256
semgrep/semgrep A tool for detecting bugs and enforcing coding standards in source code across multiple programming languages. 10,803
codypierce/hackers-grep A utility for searching specific strings in executable files, including imports and symbols. 170
rust-lang/regex An implementation of regular expressions for Rust. 3,580
pest-parser/ast Converts a dynamically typed Parse Tree to a strongly typed Abstract Syntax Tree and provides automatic conversion via derive. 83
burntsushi/ripgrep A line-oriented search tool that recursively searches directories and files with regex patterns while respecting gitignore rules. 49,203
rust-lang/rust-clippy A collection of rules to help improve Rust code by detecting common mistakes and suggesting improvements. 11,559
astral-sh/ruff A fast and powerful Python code linter and formatter written in Rust. 33,816
krux02/ast-pattern-matching A library for matching patterns on abstract syntax trees (ASTs) in programming languages. 100
1ndianl33t/gf-patterns A toolset for identifying potential security vulnerabilities and patterns in web applications 1,232
comby-tools/comby A code rewrite tool for structural search and replace across multiple programming languages. 2,430
bloopai/bloop An AI-powered code search engine that uses existing code as context to help developers find answers 9,459
lisprez/so_stupid_search A fast and minimalistic tool for searching strings deeply within directory structures recursively. 164
softprops/envy Deserializes environment variables into typesafe structs with Rust 868