Issue
The transpile_body function in crates/transpiler/src/lib.rs handles Ast::Loop by generating unreachable labels without transpiling the loop body:
Ast::Loop { body } => {
exprstream.push_str(&format!("jmp @continue1\n@contine2\n"));
}
Note: @contine2 is a typo (should be @continue2).
Expected Behavior
Loops should be transpiled to proper SSA with:
- Entry label
- Body transpilation
- Back-jump to entry
- Exit label
Files
crates/transpiler/src/lib.rs:186-189
Labels: bug, transpiler, good first issue
Issue
The
transpile_bodyfunction incrates/transpiler/src/lib.rshandlesAst::Loopby generating unreachable labels without transpiling the loop body:Note:
@contine2is a typo (should be@continue2).Expected Behavior
Loops should be transpiled to proper SSA with:
Files
crates/transpiler/src/lib.rs:186-189Labels: bug, transpiler, good first issue