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

@ -27,17 +27,17 @@ Behavior
- The operators live under `apps/lib/std/operators/` and are autoinjected into the AST prelude (dev only) so functions are materialized without changing user sources.
Operator definitions (MVP)
- Stringify — `apps/lib/std/operators/stringify.nyash`
- Stringify — `apps/lib/std/operators/stringify.hako`
- If `value` has `stringify()`, call it; else return `"" + value`.
- Compare — `apps/lib/std/operators/compare.nyash`
- Compare — `apps/lib/std/operators/compare.hako`
- `apply(op, a, b)`; observeronly for now, returns `true` and the VM performs the real compare.
- Add — `apps/lib/std/operators/add.nyash`
- Add — `apps/lib/std/operators/add.hako`
- `apply(a, b)`; observeronly for now, VM performs the real addition.
- Sub/Mul/Div/Mod — `apps/lib/std/operators/{sub,mul,div,mod}.nyash`
- Sub/Mul/Div/Mod — `apps/lib/std/operators/{sub,mul,div,mod}.hako`
- `apply(a, b)`; direct evaluation.
- Bitwise/Shifts — `apps/lib/std/operators/{bitand,bitor,bitxor,shl,shr}.nyash`
- Bitwise/Shifts — `apps/lib/std/operators/{bitand,bitor,bitxor,shl,shr}.hako`
- `apply(a, b)`; direct evaluation on integers.
- Unary — `apps/lib/std/operators/{neg,not,bitnot}.nyash`
- Unary — `apps/lib/std/operators/{neg,not,bitnot}.hako`
- `apply(a)`; negate / logical-not / bitwise-not.
Design Notes