I'm liking loops in Forth.
This commit is contained in:
@@ -102,7 +102,10 @@ stack.append(sys.argv[1])
|
|||||||
read_file(); filter_chars(); scan(); remove_stop_words()
|
read_file(); filter_chars(); scan(); remove_stop_words()
|
||||||
frequencies(); sort()
|
frequencies(); sort()
|
||||||
|
|
||||||
for i in range(0, 25):
|
stack.append(0)
|
||||||
(w, f) = stack.pop()
|
while stack[-1] < 25:
|
||||||
print w, ' - ', f
|
heap['i'] = stack.pop()
|
||||||
|
(w, f) = stack.pop(); print w, ' - ', f
|
||||||
|
stack.append(heap['i']); stack.append(1)
|
||||||
|
stack.append(stack.pop() + stack.pop())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user