expected

Record an expectation at the current parse position. The expectations captured at the rightmost few reached parse positions constitute the error message in case the parse fails.

The expectation is a Describer, in case constructing a String frivolously would be prohibitively expensive. There is also another version of this method that accepts a String directly.

Parameters

level

The ParseNotificationLevel that indicates the priority of the parse theory that failed.

describer

The describer to capture.


Record an expectation at the current parse position. The expectations captured at the rightmost parse position constitute the error message in case the parse fails.

Parameters

level

The ParseNotificationLevel that indicates the priority of the parse theory that failed.

values

A list of arbitrary Avail values that should be stringified.

transformer

A transformer that accepts the stringified values and answers an expectation message.


Record an indication of what was expected at this parse position.

Parameters

level

The ParseNotificationLevel that indicates the priority of the parse theory that failed.

aString

The string describing something that was expected at this position under some interpretation so far.