|
|
1.1 ! root 1: procedure tabwords() ! 2: wchar := &lcase ++ &ucase ++ '\'-' ! 3: words := table(0) ! 4: while line := read() do { ! 5: i := 1 ! 6: while j := upto(wchar,line,i) do { ! 7: i := many(wchar,line,j) ! 8: words[line[i:j]] +:= 1 # increment count ! 9: } ! 10: } ! 11: return words ! 12: end ! 13: ! 14: procedure main() ! 15: wlist := sort(tabwords()) # get sorted list ! 16: i := 0 ! 17: while pair := wlist[i +:= 1] do ! 18: write(left(pair[1],12),right(pair[2],3)) ! 19: end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.