import strutils, os, osproc, streams const DummyEof = "!EOF!" proc getPosition(s: string): (int, int) = result = (1, 1) var col = 0 for i in 0..