Comby est un utilitaire en ligne de commande conçu pour la recherche et la transformation de code structurel à travers divers langages de programmation. Il fonctionne comme un moteur de transformation de code qui identifie et modifie les modèles de code source en utilisant des modèles conscients de la syntaxe, garantissant que les opérations respectent les limites du langage telles que les blocs imbriqués, les chaînes et les commentaires.
Les fonctionnalités principales de comby-tools/comby sont : Code Transformation Engines, Structural Code Searchers, Automated Code Refactoring, Structural Pattern Matching, Syntax Abstractions, Recursive Descent Parsers, Interactive Change Reviewers, Change Review Interfaces.
Les alternatives open-source à comby-tools/comby incluent : openrewrite/rewrite — OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic… biomejs/gritql — GritQL is an AST-based code transformation engine and structural search tool. It uses a declarative query language to… ast-grep/ast-grep — ast-grep is a command-line utility and static analysis engine designed for searching, linting, and refactoring source… rectorphp/rector — Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize… analysis-tools-dev/static-analysis — This project is a comprehensive, curated directory of static analysis, linting, and security scanning utilities. It… benjamn/recast — Recast is a JavaScript AST parser and printer designed for automated code refactoring. It converts source code into…
OpenRewrite is an automated refactoring engine and source-to-source migration framework. It uses a lossless semantic tree parser to represent source code as type-aware trees that preserve original whitespace and formatting, enabling precise and deterministic modifications. The project utilizes a declarative refactoring pipeline where sequences of transformations are defined in YAML to resolve breaking changes and technical debt. It features type-aware pattern matching and cross-language model mapping to apply similar refactoring patterns across different programming languages. The framework
GritQL is an AST-based code transformation engine and structural search tool. It uses a declarative query language to identify and rewrite source code patterns across multiple programming languages by matching abstract syntax tree nodes rather than literal text. The system functions as an automated refactoring framework for large-scale migrations and API updates. It distinguishes itself by utilizing sequential transformation pipelines and reusable blueprints that can be synced between local environments and remote repositories. The tool covers a broad range of capabilities including static a
ast-grep is a command-line utility and static analysis engine designed for searching, linting, and refactoring source code. It operates by identifying and transforming code blocks based on their underlying syntactic structure rather than relying on text-based or regular expression matching. The tool utilizes a language-agnostic abstraction to normalize diverse programming grammars into a unified tree structure. By employing a rule-driven engine, it allows users to define complex patterns that capture syntax nodes as variables, enabling consistent and syntactically valid modifications across e
Rector is an automated PHP refactoring and modernization tool designed to upgrade language versions and modernize syntax using predefined rules. It functions as a static analysis engine that inspects code structures and types to identify refactoring targets without executing the code. The project provides a framework for defining custom transformation logic to automate project-specific changes. It distinguishes itself by offering specialized capabilities for migrating legacy or custom frameworks to modern alternatives and converting docblock annotations into native language attributes. The s