Sfoglia il codice sorgente

Turns out a TODO list issue was already fixed implicitly

Taddeus Kroes 12 anni fa
parent
commit
8ff21e8694
2 ha cambiato i file con 0 aggiunte e 2 eliminazioni
  1. 0 1
      README.md
  2. 0 1
      phases/desug.ml

+ 0 - 1
README.md

@@ -7,6 +7,5 @@ CiviCaml is a compiler for the CiviC language, written in OCaml.
 Issues & TODO
 -------------
 
-- Check for illegal assigments of loop counter in for-loop body.
 - Keep file content in buffer to prevent error messages from crashing when
   reading from stdin.

+ 0 - 1
phases/desug.ml

@@ -115,7 +115,6 @@ let for_to_while node =
                 Assign (_stop, None, stop, locof stop);
                 Assign (_step, None, step, locof step);
                 While (cond, traverse new_vars (Block (
-                    (* TODO: check for illegal assigments of counter in body *)
                     block_body (replace_var counter _i body) @
                     [Assign (_i, None, Binop (Add, vi, vstep, noloc), noloc)]
                 )), loc);