一键导入
fixity-migration
Migration from component-based operators to fixity-based operators in the Yuyan self-hosting compiler
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Migration from component-based operators to fixity-based operators in the Yuyan self-hosting compiler
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
豫言源码引号标识符迁移规则。用于编辑 .豫/.yuyan 编译器或库代码,把所有普通名字写成「」形式,同时保持语法关键字、列表括号、占位符、字符串字面量、注释和操作符声明结构正确。
Project-specific Yuyan migration rules for replacing local structure blocks such as `虑(...)` / structure-recursive declarations with expression-level `递归虑...其...者...而...` and `虑...者...而...`. Use when editing yylib or compiler `.豫`/`.yuyan` code to exercise the structure recursion operator / reclet syntax, especially when converting old structure declarations, local recursive helper functions, or direct expressions separated by `。`.
Manually remove yylib custom operator declarations and their supporting definitions from the Yuyan codebase, without Python or automated rewrites.
How to bootstrap the Yuyan self-hosting compiler — 5-stage chain, common pitfalls, build commands, and pipeline architecture
| name | fixity-migration |
| description | Migration from component-based operators to fixity-based operators in the Yuyan self-hosting compiler |
操作符数据结构。豫: 新 Fixity 类型 (FxNone | FxOp(Int) | FxComp(String))构造操作符 简化为 keyword + left_fixity + right_fixity + elaborator + name组件、优先级关系、绑定组件、特殊字符串组件、字符串组件、元素组件操作符操作。豫 — 获取标号、组件表示、获取所有组件、操作符是开放的 等用到了旧字段操作符集术。豫 — 插入闭合操作符、插入开放操作符、优先级计算内建操作符对象定义。豫 — 所有操作符定义要转成新 fixity 格式表达式解析。豫 — 匹配组件获取参数 改为基于 fixity 的 operand pop表达式解析输入分析。豫 — 操作符匹配和归约逻辑符列环境术。豫 — 操作符集读写抽象语法分析。豫 — 操作符声明处理(术 关键字)粗语法分析。豫 — 结构名称操作yy_bs_stable 编译,不用 yy