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

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

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

2 个仓库

Awesome GitHub RepositoriesConcrete Syntax Tree Transformations

Modifications made specifically to concrete syntax trees to preserve exact source fidelity during code rewriting.

Distinct from Syntax Tree Transformers: Distinct from general Syntax Tree Transformers by focusing on the preservation of exact source syntax (concrete trees) rather than simplified abstract structures.

Explore 2 awesome GitHub repositories matching software engineering & architecture · Concrete Syntax Tree Transformations. Refine with filters or upvote what's useful.

Awesome Concrete Syntax Tree Transformations GitHub Repositories

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

    google/yapf

    13,978在 GitHub 上查看↗

    YAPF 是一个 Python 代码格式化程序和样式合规工具。它作为一个基于 AST 的重格式化程序运行,使用具体语法树来确保源文件之间的结构一致性和统一的视觉呈现。 该引擎利用基于惩罚的布局优化器,通过计算不同格式化选择的数值成本来确定最佳换行符。它采用多进程代码处理器将多个文件的格式化分布到多个 CPU 核心上。 该工具涵盖了通过就地文件修改、差异分析和处理部分代码片段进行的源代码重格式化。它包括一个用于管理样式预设、布局规则和项目级设置的基于规则的配置系统。 集成能力包括用于持续集成流水线的样式合规验证、Git 钩子自动化以及基于编辑器的保存时格式化功能。

    Reconstructs source code by modifying concrete syntax tree representations while preserving the original structural integrity.

    Python
    在 GitHub 上查看↗13,978
  • asottile/pyupgradeasottile 的头像

    asottile/pyupgrade

    4,097在 GitHub 上查看↗

    pyupgrade 是一个 Python 静态代码现代化工具和语法升级器。它自动重写源代码,以根据指定的版本目标实现现代语言特性和语法。 该工具专注于通过删除已弃用的导入、兼容性垫片和过时的特定版本条件块来消除技术债务。它还重构类型注解以使用当前标准,例如简化的泛型别名和联合运算符。 其能力范围包括更新标准库使用、优化内置函数调用,以及将冗长的集合构造函数或字符串格式化转换为简洁的现代等价物。这些转换通过一个目标版本化的规则引擎执行,该引擎保留了原始格式和注释。

    Implements transformations on concrete syntax trees to ensure that original source formatting and comments are preserved during rewriting.

    Python
    在 GitHub 上查看↗4,097
  1. Home
  2. Software Engineering & Architecture
  3. Trees
  4. Syntax Tree Construction
  5. Syntax Tree Transformers
  6. Concrete Syntax Tree Transformations