phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0

This commit is contained in:
nyash-codex
2025-11-06 15:41:52 +09:00
parent 2dc370223d
commit 77d4fd72b3
1658 changed files with 6288 additions and 2612 deletions

View File

@ -1,4 +1,4 @@
// array_prepend_zero_macro.nyash
// array_prepend_zero_macro.hako
// MacroBoxSpec.expand: prepend 0 to every Array elements list in AST JSON v0
// Contract: expand(json: string) -> string (AST JSON v0)

View File

@ -1,4 +1,4 @@
// hang_macro.nyash
// hang_macro.hako
// Macro that never returns (infinite loop) to test timeout handling.
static box MacroBoxSpec {

View File

@ -1,4 +1,4 @@
// if_match_normalize_macro.nyash
// if_match_normalize_macro.hako
// 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.
@ -7,7 +7,7 @@ static box MacroBoxSpec {
name() { return "IfMatchNormalize" }
expand(json, ctx) {
using "apps/lib/json_builder.nyash" as JB
using "apps/lib/json_builder.hako" as JB
// --- helpers copied/adapted from loop_normalize ---
function parse_value(s, i) {

View File

@ -1,4 +1,4 @@
// invalid_json_macro.nyash
// invalid_json_macro.hako
// Macro that returns invalid JSON (for strict error test)
static box MacroBoxSpec {

View File

@ -1,4 +1,4 @@
// loop_normalize_macro.nyash
// loop_normalize_macro.hako
// MVP: identity expansion with (json, ctx) signature.
// Next steps: normalize `loop(cond){ body }` into carrier-based LoopForm.
@ -10,7 +10,7 @@ static box MacroBoxSpec {
// "kind":"Loop","condition":<json>,"body":[ ... ] and rewrite them
// into a normalized form using JsonBuilder (keys ordered as condition/body).
using "apps/lib/json_builder.nyash" as JB
using "apps/lib/json_builder.hako" as JB
// helpers
local s = json

View File

@ -1,4 +1,4 @@
// map_insert_tag_macro.nyash
// map_insert_tag_macro.hako
// MacroBoxSpec.expand: insert a leading entry {"k":"__macro","v":"on"} into every Map entries list
// Contract: expand(json: string) -> string (AST JSON v0)

View File

@ -1,4 +1,4 @@
// scope_defer_macro.nyash
// scope_defer_macro.hako
// MVP scaffold: detect @scope/@defer style markers in AST JSON (string) and keep identity.
// Future: attach scope attrs to blocks and emit MIR hints in lowering.

View File

@ -1,4 +1,4 @@
// upper_string_macro.nyash
// upper_string_macro.hako
// MacroBoxSpec.expand: uppercase string literal values that start with "UPPER:" in AST JSON v0
// Contract: expand(json: string) -> string (AST JSON v0)