Main
Main copied to clipboard
Bugs in ForWithEndingBreakToDoWhile
I fixed some of the problems, and disabled the tipper, but there is more work to be done:
- The condition of the if statement must be ANDed with the condition of the if.
- Do not insert statements: instead, create a new do, copy the full body of the for, and then, erase, using listrewrite the last statement.
- If there are initializers, move them to before the block. Again, use listRewrite. There are method to "insertBefore" and "insertAfter" a statement
- Duplicate the tip for while statement.
- Go over all the tests; now they are incorrect.
@AdiOmari : FYI. We call back on Doron to fix a bug. @ravivos : FYI
@mdoron try spartanizing the Spartanizer project with your tipper and see if it gives errors.
Did you abandon this? @mdoron @ravivos
FYI: @tanyabrokhman