llvm: add LoopForm PHI hygiene smoke (no empty PHI); docs: MIR hints (zero-cost); macros: scaffold If/Match normalize (identity)
This commit is contained in:
13
apps/macros/examples/if_match_normalize_macro.nyash
Normal file
13
apps/macros/examples/if_match_normalize_macro.nyash
Normal file
@ -0,0 +1,13 @@
|
||||
// if_match_normalize_macro.nyash
|
||||
// Scaffold: identity expansion for now. Future: introduce join variable and
|
||||
// canonical If/Match normalization (scrutinee once, guard fused) as documented
|
||||
// in docs/guides/if-match-normalize.md.
|
||||
|
||||
static box MacroBoxSpec {
|
||||
name() { return "IfMatchNormalizeScaffold" }
|
||||
|
||||
expand(json, ctx) {
|
||||
return json
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user