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 @@
// test_array_improvements.nyash - ArrayBox Phase 2 improvements test
// test_array_improvements.hako - ArrayBox Phase 2 improvements test
// Testing: sort(), reverse(), indexOf(), slice() methods
print("📦 Testing ArrayBox improvements...")

View File

@ -1,4 +1,4 @@
// test_operators.nyash - Operator Phase 3 comprehensive test
// test_operators.hako - Operator Phase 3 comprehensive test
// Testing: comparison operators (<, >, <=, >=, ==, !=) with mixed types
print("⚖️ Testing comprehensive operator support...")

View File

@ -360,7 +360,7 @@ mod integration_tests {
#[test]
fn test_the_debug_this_problem() {
// 元のdebug_this_problem.nyashと同等のテスト
// 元のdebug_this_problem.hakoと同等のテスト
let code = r#"
box TestBox {
init { value }

View File

@ -21,19 +21,19 @@ NYASH_VM_STATS=1 NYASH_VM_STATS_JSON=1 NYASH_VM_DEBUG_BOXCALL=1 bash run_spec_sm
## Expected outputs (goldens)
We deliberately **print a single line** per test to make diffing trivial.
See inline comments in each `*.nyash`.
See inline comments in each `*.hako`.
## File list
1. 01_ops_assoc.nyash operator associativity & coercion order
2. 02_deep_parens.nyash deep parentheses & arithmetic nesting
3. 03_array_map_nested.nyash nested array/map literal & access
4. 04_map_array_mix.nyash object/array cross indexing & updates
5. 05_string_concat_unicode.nyash string/number/Unicode concatenation
6. 06_control_flow_loopform.nyash break/continue/dispatch shape
7. 07_await_nowait_mix.nyash nowait/await interleave determinism
8. 08_visibility_access.nyash private/public & override routing
9. 09_lambda_closure_scope.nyash closure capture & shadowing
10. 10_match_result_early_return.nyash early return vs. branch merge
1. 01_ops_assoc.hako operator associativity & coercion order
2. 02_deep_parens.hako deep parentheses & arithmetic nesting
3. 03_array_map_nested.hako nested array/map literal & access
4. 04_map_array_mix.hako object/array cross indexing & updates
5. 05_string_concat_unicode.hako string/number/Unicode concatenation
6. 06_control_flow_loopform.hako break/continue/dispatch shape
7. 07_await_nowait_mix.hako nowait/await interleave determinism
8. 08_visibility_access.hako private/public & override routing
9. 09_lambda_closure_scope.hako closure capture & shadowing
10. 10_match_result_early_return.hako early return vs. branch merge
## CI hint
- Add this suite **before** your self-host smokes:

View File

@ -33,8 +33,8 @@ run_one () {
# Requires LLVM features and NYASH_LLVM_OBJ_OUT env; emit and run
local obj="$OUTDIR/nyash_llvm_temp.o"
NYASH_LLVM_OBJ_OUT="$obj" "$NYASH_BIN" --backend llvm "$file" >/dev/null
cc "$obj" -L crates/nyrt/target/release -Wl,--whole-archive -lnyrt -Wl,--no-whole-archive -lpthread -ldl -lm -o "$OUTDIR/app_$(basename "$file" .nyash)"
"$OUTDIR/app_$(basename "$file" .nyash)" > "$out"
cc "$obj" -L crates/nyrt/target/release -Wl,--whole-archive -lnyrt -Wl,--no-whole-archive -lpthread -ldl -lm -o "$OUTDIR/app_$(basename "$file" .hako)"
"$OUTDIR/app_$(basename "$file" .hako)" > "$out"
;;
*) echo "Unknown mode: $mode" >&2; return 2;;
esac
@ -60,10 +60,10 @@ compare_modes () {
}
main () {
local tests=( $(ls -1 tests/syntax_torture/*.nyash 2>/dev/null || true) )
local tests=( $(ls -1 tests/syntax_torture/*.hako 2>/dev/null || true) )
if [ ${#tests[@]} -eq 0 ]; then
# fallback: assume running inside this folder
tests=( $(ls -1 ./*.nyash) )
tests=( $(ls -1 ./*.hako) )
fi
for t in "${tests[@]}"; do

Some files were not shown because too many files have changed in this diff Show More