Topological Sorting by murky-satyr

set s [read stdin]
while {[regexp {\d+(?=: *\n)} $s n]} {puts $n
set s [regsub -all \\m$n\\M $s ""]}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page