mirror of
https://github.com/imjasonh/nescript
synced 2026-07-08 17:06:04 +00:00
Pipeline: - main.rs now runs IR lowering and optimization before codegen - IR is built and optimized but output still uses AST-based codegen (IR-based codegen is a future improvement) Coin Cavern example (examples/coin_cavern.ne): - 3-state game: Title → Playing → GameOver - Functions (clamp_x), constants, gravity physics, coin collection - Demonstrates most M2 language features Integration tests (14 total, 7 new): - program_with_functions: functions with params and return values - program_with_while_loop: while loops compile correctly - program_with_fast_slow_vars: placement hints accepted - program_with_multi_state_transitions: 3-state cycle - coin_cavern_compiles: full Coin Cavern example - ir_pipeline_produces_ir: validates IR lowering + optimizer - error_test_recursion_detected: E0402 for recursive functions https://claude.ai/code/session_01W6eQFStA66EuMKHUFo2rx3 |
||
|---|---|---|
| .. | ||
| integration | ||
| integration_test.rs | ||