             log()
         }
     } else if !parsedLastCharacter {
-        print("Syntax error at position \(remainder.index): \(remainder.text.trimmingCharacters(in: .whitespacesAndNewlines))")
+        let remainder = remainder.text.trimmingCharacters(in: .whitespacesAndNewlines)
+        if interactive {
+            print("Syntax error: \(remainder)")
+        } else {
+            print("Syntax error on line \(lineNumber): \(remainder)")
+        }
         if verbose {
             log()
             log(makeReport(result: ist))

    if let l = lines {
        if l.count > 0 {
            let line = lines?.removeFirst()
            return line
        }
        return nil

}

var lines: [String]?
var lineNumber = 0

do {
    let args = CommandLine.arguments
