13 lines
715 B
Markdown
13 lines
715 B
Markdown
# 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.
|
|
- Temporary: CmdGetField/CmdSetField maintain lightweight PIC counters for regression tests; remove or guard under a flag once bytecode becomes the sole execution path.
|
|
|
|
Tests
|
|
- ./gradlew :lynglib:jvmTest
|
|
- ./gradlew :lynglib:allTests -x :lynglib:jvmTest
|