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:
@ -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)
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// hang_macro.nyash
|
||||
// hang_macro.hako
|
||||
// Macro that never returns (infinite loop) to test timeout handling.
|
||||
|
||||
static box MacroBoxSpec {
|
||||
@ -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) {
|
||||
@ -1,4 +1,4 @@
|
||||
// invalid_json_macro.nyash
|
||||
// invalid_json_macro.hako
|
||||
// Macro that returns invalid JSON (for strict error test)
|
||||
|
||||
static box MacroBoxSpec {
|
||||
@ -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
|
||||
@ -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)
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user