17 lines
549 B
Plaintext
17 lines
549 B
Plaintext
// loop_normalize_macro.nyash
|
|
// MVP: identity expansion with (json, ctx) signature.
|
|
// Next steps: normalize `loop(cond){ body }` into carrier-based LoopForm.
|
|
|
|
static box MacroBoxSpec {
|
|
static function name() { return "LoopNormalize" }
|
|
|
|
static function expand(json, ctx) {
|
|
// MVP: return input unchanged, but ensure JsonBuilder is loadable for next step.
|
|
// Example usage (commented):
|
|
// local JB = include "apps/lib/json_builder.nyash"
|
|
// local zero = JB.literal_int(0)
|
|
// _ = zero // suppress unused
|
|
return json
|
|
}
|
|
}
|