Expand bytecode expressions and loops

This commit is contained in:
sergeych committed 2026-01-26 05:47:37 +03:00
1 parent 72901d9d4c
commit 144082733c
11 files changed
+590 -209

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
# Bytecode expression + for-in loop support
Changes
- Added bytecode compilation for conditional/elvis expressions, inc/dec, and compound assignments where safe.
- Added ForInStatement and ConstIntRange to keep for-loop structure explicit (no anonymous Statement).
- Added PUSH_SCOPE/POP_SCOPE opcodes with SlotPlan constants to create loop scopes in bytecode.
- Bytecode compiler emits int-range for-in loops when const range is known and no break/continue.
Tests
- ./gradlew :lynglib:jvmTest
- ./gradlew :lynglib:allTests -x :lynglib:jvmTest