jsonbuilder: add apps/lib/json_builder.nyash and docs; wire loop_normalize_macro to prepare for usage; prefer Nyash runner route

This commit is contained in:
Selfhosting Dev
2025-09-19 23:06:28 +09:00
parent 9a0fe71215
commit 1d309283b6
3 changed files with 130 additions and 3 deletions

View File

@ -6,8 +6,11 @@ static box MacroBoxSpec {
static function name() { return "LoopNormalize" }
static function expand(json, ctx) {
// For MVP, return input unchanged.
// 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
}
}