On it — I'll get the parser handling the new syntax and keep both runtimes in parity.
Assistant
Now the terminal game kit in the Rust runtime plus dispatch.
Assistant
Found another original-era lexer bug: integer ranges 1..10 never tokenized correctly (the second . was left in the stream). Fixing both lexers.
Assistant
Grid assignment g[1][2] = "@" needs nested index write-back in the Rust transpiler. Implementing arbitrary-depth support.
Assistant
Rust side complete. Now Python parity for match and the game kit.
Assistant
One more hardening step for this wave: adding the new match syntax to the 57k-line parse oracle.
Assistant
Walkthrough
Wave 8: mainstream match, integer ranges, terminal game kit
match upgraded to what real languages have — binding patterns (case other => binds the value; identifier patterns used to silently never match), guards (case n if n > 100 =>), and (). Both parsers dodge the lambda/postfix-if ambiguities by parsing patterns at ternary level with binding lookahead.
range patterns
case 1..10 =>
Original-era lexer bug found and fixed (both backends): integer ranges never tokenized.1..10 left the second . in the token stream — a parse error since the beginning; only a..b identifier ranges ever worked. for i in 1..4 now runs.
Nested index assignment — g[1][2] = "@" rebuilds arbitrary-depth paths in the Rust backend.
Terminal game kit — grid(w, h, fill), render_grid(g), clear_screen() in both backends, so @game programs can draw ASCII scenes.
The 57k-line showcase parse oracle regenerated with all wave-8 syntax and passes.
Testing
✅ cargo test — 32 unit + 9 smoke
✅ cargo test smoke_tests_cubry_directory -- --ignored — all 25 fixtures end-to-end (74 s)
✅ test_match_and_game.cubry output is byte-identical (diff-verified) between the Rust compiler and the Python interpreter
Cumulative on this PR: 13 compiler/parser/lexer bugs fixed, mainstream language surface (match with guards, destructuring, interpolation, lambdas, modules, reactivity, ~80 stdlib methods, db/http), working @site + @game modes, 10 ms incremental reruns, and 7 new/rebuilt commands — all mirrored in the Python port with diff-verified parity.
Good next frontiers if you want to keep pushing: an LSP server for editor autocomplete, a .cubpkg registry with cubpkg install name@version, async/await depth in the Python backend, or a real-time @game input loop.