Companion

object Companion

Properties

Link copied to clipboard
const val typeFunctor: String

The system error Struct functor

Functions

Link copied to clipboard
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.

Link copied to clipboard

Creates a SyntaxError with a plain message, no source position information attached.

Link copied to clipboard
fun whileParsingClauses(context: ExecutionContext, input: String, index: Int, row: Int, column: Int, message: String): SyntaxError

Creates a SyntaxError reporting that parsing the index-th clause of input failed at row:column, with detail message; the error message includes a caret (^) pointing at the offending column, produced via errorDetector.

Link copied to clipboard
fun whileParsingTerm(context: ExecutionContext, input: String, row: Int, column: Int, message: String): SyntaxError

Creates a SyntaxError reporting that parsing input as a single term failed at row:column, with detail message.