awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
comby-tools avatar

comby-tools/comby

0
View on GitHub↗
2,657 星标·74 分支·OCaml·Apache-2.0·1 次浏览comby.dev↗

Comby

Comby 是一个命令行实用程序,专为跨多种编程语言的结构化代码搜索和转换而设计。它作为一个代码转换引擎,通过利用语法感知模板来识别和修改源代码模式,确保操作尊重语言边界,如嵌套块、字符串和注释。

该工具的特色在于将各种编程语言映射为统一的结构化表示,从而允许在忽略无关空格和格式的情况下进行一致的模式匹配。它通过执行状态机来执行搜索和替换任务,该状态机验证结构完整性,从而在保留源代码原始缩进和风格约定的同时实现精确修改。

除了简单的搜索和替换外,该工具还通过应用项目范围的语法更新来支持大规模代码库迁移和自动化重构。用户可以通过交互式终端界面验证这些修改,该界面允许在提交到文件系统之前检查和选择性地协调更改。

Features

  • Code Transformation Engines - Functions as a code transformation engine that matches and modifies source code patterns using structural templates.
  • Structural Code Searchers - Identifies specific code patterns across multiple files using syntax-aware matching.
  • Automated Code Refactoring - Automates large-scale code refactoring and syntax updates across multiple files.
  • Structural Pattern Matching - Matches code patterns by parsing syntax boundaries into abstract templates that ignore irrelevant whitespace.
  • Syntax Abstractions - Maps diverse programming languages to a unified structural representation for consistent pattern matching.
  • Recursive Descent Parsers - Uses recursive descent parsing to isolate code blocks from comments and strings during structural analysis.
  • Interactive Change Reviewers - Provides a terminal interface for inspecting and selectively reconciling code changes before committing.
  • Change Review Interfaces - Displays suggested modifications in a terminal interface for selective review and acceptance.
  • Code Refactoring Tools - Provides a command-line utility for syntax-aware search and replace operations across multiple languages.
  • Source Code Mutators - Modifies source files directly on disk while preserving original indentation and stylistic conventions.
  • Large-Scale Code Migrations - Supports large-scale codebase migrations by applying project-wide syntax updates.
  • Structural Matching State Machines - Executes search operations by traversing a state machine that validates structural integrity against templates.
  • Syntax-Aware Transformation Engines - Modifies code structures using templates that understand language syntax to ensure safety.

Star 历史

comby-tools/comby 的 Star 历史图表comby-tools/comby 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

包含 Comby 的精选搜索

收录 Comby 的精选合集。
  • 现代 Unix 命令行替代工具
  • 命令行界面工具
  • 开发者工具

Comby 的开源替代方案

相似的开源项目,按与 Comby 的功能重合度排序。
  • openrewrite/rewriteopenrewrite 的头像

    openrewrite/rewrite

    3,312在 GitHub 上查看↗

    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

    Javaabstract-syntax-treeastcode-search
    在 GitHub 上查看↗3,312
  • biomejs/gritqlbiomejs 的头像

    biomejs/gritql

    4,530在 GitHub 上查看↗

    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

    Rustastcodemodjavascript
    在 GitHub 上查看↗4,530
  • ast-grep/ast-grepast-grep 的头像

    ast-grep/ast-grep

    12,522在 GitHub 上查看↗

    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

    Rustastbabelcodemod
    在 GitHub 上查看↗12,522
  • rectorphp/rectorrectorphp 的头像

    rectorphp/rector

    10,199在 GitHub 上查看↗

    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

    PHPastautomated-upgradesinstant-upgrades
    在 GitHub 上查看↗10,199
查看 Comby 的所有 30 个替代方案→

常见问题解答

comby-tools/comby 是做什么的?

Comby 是一个命令行实用程序,专为跨多种编程语言的结构化代码搜索和转换而设计。它作为一个代码转换引擎,通过利用语法感知模板来识别和修改源代码模式,确保操作尊重语言边界,如嵌套块、字符串和注释。

comby-tools/comby 的主要功能有哪些?

comby-tools/comby 的主要功能包括:Code Transformation Engines, Structural Code Searchers, Automated Code Refactoring, Structural Pattern Matching, Syntax Abstractions, Recursive Descent Parsers, Interactive Change Reviewers, Change Review Interfaces。

comby-tools/comby 有哪些开源替代品?

comby-tools/comby 的开源替代品包括: 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…