Skip to content

Commit

Permalink
Debug function at fijaTipos()
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Nov 30, 2017
1 parent 6bf7dca commit 358ad9a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tigertopsort.sml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,24 @@ fun agregarecs env [] = env
| agregarecs env ((k, v)::t) = agregarecs (tabRInserta(k, v, env)) t

fun fijaTipos batch env =
let val pares = genPares batch
let
val pares = genPares batch
val recs = buscaArrRecords batch
val orden = topsort pares
val env' = procesa orden batch env recs
val env'' = agregarecs env' recs
val env''' = fijaNONE (tabAList env'') env''

(* Debugging *)
val _ = print("\n**Debugging from tigertopsort\n")
val _ = (print "\n TENV table: \n"; tigermuestratipos.printTTipos(tabAList env'''))
fun debug() =
let
in
print("\n************ DEBUGGING FROM tigertopsort.fijaTipos()\n");
print("\nTENV table: \n");
tigermuestratipos.printTTipos(tabAList env''')

end

(*val _ = debug()*)
in
env'''
end
Expand Down

0 comments on commit 358ad9a

Please sign in to comment.