Iterable ranges used in for expressions can also have variables as the start, step or end value. That works fine until the typechecking stage but there is no code for it in the intermediate representation or the backend code generation.
Implement the intermediate format and backend code generation for constructs like the following:
fn (start_index:u32, end_index:u32) {
for a in start_index:2:end_index {
print("foo")
}
}
Iterable ranges used in for expressions can also have variables as the
start
,step
orend
value. That works fine until the typechecking stage but there is no code for it in the intermediate representation or the backend code generation.Implement the intermediate format and backend code generation for constructs like the following: