Companion

object Companion

Functions

Link copied to clipboard
fun check(parse: () -> Unit): SyntaxProblem?

Where parse finds that the text it reads does not parse, or null if it does

Link copied to clipboard
fun of(exception: ParseException): SyntaxProblem

The problem exception reports

Link copied to clipboard
fun <T> parsing(what: String, parse: () -> T): T

parse done, or an Arg2pException telling where the text it reads does not parse (what it is): its message is the problem, as Theory: Unexpected token '.'; expected term at 2:9