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

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

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

5 个仓库

Awesome GitHub RepositoriesPattern-Based Replacements

Replacing matched AST nodes with new code using a string-like syntax that ignores formatting differences.

Distinct from Code Transformation Tools: Distinct from Code Transformation Tools: focuses on pattern-based replacement with formatting-agnostic syntax rather than general AST manipulation.

Explore 5 awesome GitHub repositories matching software engineering & architecture · Pattern-Based Replacements. Refine with filters or upvote what's useful.

Awesome Pattern-Based Replacements GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • thx/gogocodethx 的头像

    thx/gogocode

    6,075在 GitHub 上查看↗

    GoGoCode is an AST-based code transformation toolkit that enables developers to query, match, and rewrite JavaScript source code using jQuery-style selectors and wildcard patterns. At its core, it provides a programmatic code refactoring library that manipulates parsed AST nodes, allowing precise structural modifications without worrying about formatting differences. The toolkit also functions as a JavaScript AST query engine, finding code patterns through snippet-based matching with wildcards that capture unknown or variable-length fragments. What distinguishes GoGoCode is its callback-drive

    Replaces matched AST nodes with new code using a string-like syntax that ignores formatting differences.

    JavaScriptastbabeljscodeshift
    在 GitHub 上查看↗6,075
  • anordal/shellhardenanordal 的头像

    anordal/shellharden

    4,784在 GitHub 上查看↗

    Shellharden 是一个 Shell 脚本加固工具和 linter,旨在提高 Bash 脚本的安全性和可靠性。它作为一个自动化工具,重写脚本以遵循行业标准的引用和安全实践。 该项目提供了一个优化器和标准化工具,用更安全的函数等效项替换不安全的模式和别名。它包含一个语法高亮器,使用视觉标记和颜色来指示漏洞以及需要进行引用修正的区域。 该工具涵盖了广泛的功能,包括自动安全修复、漏洞检测和脚本错误检测。这些功能通过自动重写和结构化语法验证确保脚本的一致性。

    Replaces unsafe shell scripting patterns with industry-standard equivalents using automated text rewriting.

    Rust
    在 GitHub 上查看↗4,784
  • immunant/c2rustimmunant 的头像

    immunant/c2rust

    4,642在 GitHub 上查看↗

    c2rust is a source-to-source translation suite and C-to-Rust transpiler designed to convert C source code and libraries into functionally equivalent unsafe Rust code. It operates as a pipeline that preserves original behavior and data structures, producing translated code that compiles as compatible shared libraries or Rust crates. The system includes an automated Rust refactoring framework that uses pattern-based AST rewriting to transform unsafe Rust into safe, idiomatic constructs. It utilizes an ownership inference engine to determine when raw pointers can be converted into safe reference

    Replaces matched statements or expressions with new syntax produced by a callback or a pattern template.

    Rustmemory-safetymigrationrust
    在 GitHub 上查看↗4,642
  • onnxsim/onnxsimonnxsim 的头像

    onnxsim/onnxsim

    4,353在 GitHub 上查看↗

    onnxsim 是一个深度学习图优化器和模型简化器,旨在降低 ONNX 计算图的复杂度。它充当模型压缩器,用简化的常量输出替换复杂的算子序列,以减少操作开销。 该项目通过常量折叠推理实现简化,将常量算子的子图替换为预计算的常量张量。它利用基于模式的图重写和静态计算图分析来识别并删除冗余节点或不可达操作。 该工具涵盖了广泛的模型优化功能,包括算子冗余消除以及删除不必要的 reshape 或 identity 节点。这些过程简化了执行流程并减少了模型的内存占用。

    Uses pattern-based rewriting to replace operator sequences with simplified equivalent structures.

    C++deep-learningonnxpytorch
    在 GitHub 上查看↗4,353
  • 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

    Swaps expressions or statements using type-aware templates that leverage compiler information for accurate replacement.

    Javaabstract-syntax-treeastcode-search
    在 GitHub 上查看↗3,312
  1. Home
  2. Software Engineering & Architecture
  3. Code Transformation Tools
  4. Pattern-Based Replacements

探索子标签

  • Graph Pattern RewritersTools that identify specific sequences of operations in a graph and replace them with optimized equivalents. **Distinct from Pattern-Based Replacements:** Targets computational graphs of neural networks rather than AST nodes of source code.