nac3/nac3core/src/codegen
David Mak e0de82993f core: Preserve value of variable shadowed by for loop
Previously, the final value of the target expression would be one after
the last element of the loop, which does not match Python's behavior.

This commit fixes this problem while also preserving the last assigned
value of the loop beyond the loop, matching Python's behavior.
2023-09-06 20:09:36 +08:00
..
irrt update dependencies 2023-01-12 19:31:03 +08:00
concrete_type.rs basic unsigned integer support 2022-03-08 13:34:02 +08:00
expr.rs core: Rename IR variables 2023-09-06 14:02:15 +08:00
generator.rs core: Add name parameter to gen_{var_alloc,store_target} 2023-09-06 11:00:02 +08:00
mod.rs core: Preserve value of variable shadowed by for loop 2023-09-06 20:09:36 +08:00
stmt.rs core: Preserve value of variable shadowed by for loop 2023-09-06 20:09:36 +08:00
test.rs nac3core: fix broken tests 2022-05-11 03:53:53 +08:00