← Browse

@yuyan-lang/fixity-migration

B

Migration from component-based operators to fixity-based operators in the Yuyan self-hosting compiler

skillclaude

Install

agr install @yuyan-lang/fixity-migration --target claude

Writes 1 file into .claude/skills/, pinned to git-149b30a1.

  • .claude/skills/fixity-migration/SKILL.md

Document


name: fixity-migration description: Migration from component-based operators to fixity-based operators in the Yuyan self-hosting compiler

Fixity Migration

Done

  • 操作符数据结构。豫: 新 Fixity 类型 (FxNone | FxOp(Int) | FxComp(String))
  • 构造操作符 简化为 keyword + left_fixity + right_fixity + elaborator + name
  • 删除了 组件优先级关系绑定组件特殊字符串组件字符串组件元素组件

待更新(引用旧类型的文件)

  • 操作符操作。豫获取标号组件表示获取所有组件操作符是开放的 等用到了旧字段
  • 操作符集术。豫插入闭合操作符插入开放操作符、优先级计算
  • 内建操作符对象定义。豫 — 所有操作符定义要转成新 fixity 格式
  • 表达式解析。豫匹配组件获取参数 改为基于 fixity 的 operand pop
  • 表达式解析输入分析。豫 — 操作符匹配和归约逻辑
  • 符列环境术。豫 — 操作符集读写
  • 抽象语法分析。豫 — 操作符声明处理( 关键字)
  • 粗语法分析。豫 — 结构名称操作

编译

  • yy_bs_stable 编译,不用 yy
  • 每次改动后验证

Trustgrade B

  • passBody integrity

    Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.

  • passType matchnot applicable to this artifact type

    Whether the artifact is really the kind of thing its metadata claims it is.

  • passFreshness

    How long since the source repository was last pushed to.

  • passPrompt injection

    Scans the artifact's own text for instructions aimed at your agent rather than at you.

  • warnLicensecopyleft/unknown — index-and-link only

    Whether the source repository declares an SPDX license permissive enough to redistribute.

How the grade is calculated

Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:

  • Aevery check passed
  • Bone warning
  • Ctwo warnings
  • Dprompt injection or body integrity failed, or three warnings
  • Fone of those failed, and something else is wrong

These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.

Versions

  • git-149b30a1a2312026-07-31