reportError

fun reportError()

Report the rightmost accumulated errors, then invoke the failureReporter.


fun reportError(    lexingState: LexingState,     headerMessagePattern: String,     message: String)

Report one specific terminal problem and call the failure continuation to abort compilation.

Parameters

lexingState

The position at which to report the problem.

headerMessagePattern

The problem header pattern, where the first pattern argument is the indicator string (e.g., circled-A), and the second pattern argument is the line number.

message

The message text for this problem.