Skills

Compile Logic Expr

逻辑表达式 / 编译-逻辑表达式 / 编译逻辑, , 且 / 或短路 / 逻辑表达式编译 / 且/或 → 短路跳转字节。用户提到这些词时使用本技能。...

Install

npx skills add FuRongJun-1999/dsh-memory --skill compile-logic-expr -g -a claude-code -y
Category
Engineering
Updated
3d ago
License
MIT
Context cost
Lightabout 77 tokens
Runs scripts
No, instructions only

What it does

逻辑表达式 / 编译-逻辑表达式 / 编译逻辑, , 且 / 或短路 / 逻辑表达式编译 / 且/或 → 短路跳转字节。用户提到这些词时使用本技能。 场景:对照:编译逻辑, , 且/或短路(左操作数决定是否求右, , 短路求值语义)。 【不适用】Not for 以下场景:op 非 {且} 时

编译-逻辑表达式(compile-logic-expr)

When to use

任务「逻辑表达式」;对照:编译逻辑, , 且/或短路(左操作数决定是否求右, , 短路求值语义)。

克制条款(不适用条件)

op 非 {且} 时

How to execute

且→JUMP_IF_FALSE、或→JUMP_IF_TRUE(左短路)

Verification

  • 单元样例 2 条(cases 断言)
  • 物理基底:按 calibration 对照(编译/运行/断言裁决)

References

  • 单元库:compiler_code_units.py「编译-逻辑表达式」

More in Engineering