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:
@ -27,17 +27,17 @@ Behavior
|
||||
- The operators live under `apps/lib/std/operators/` and are auto‑injected 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)`; observer‑only 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)`; observer‑only 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
|
||||
|
||||
Reference in New Issue
Block a user