errorDetector

fun errorDetector(text: String, line: Int, column: Int, message: String? = null): String

Renders text's line (and, for context, line - 1 if present), followed by a ^ marker under column and the optional message, for use in a human-readable SyntaxError report.