Zafu/Text/Parse/Errorsource code:
Caret, Error, Expectationexpectation_eq, merge_contexts, merge_errors, merge_expectations, push_context, replace_expectedCarettype Caret
Caret(offset: Int, line: Int, column: Int)Errortype Error
Error(input: String, failed_at: Int, expected: List[Expectation], contexts: List[String])Expectationtype Expectation
ExpectedChar(ch: Char)ExpectedEndExpectedPredicate(label: String)ExpectedString(value: String)FailWith(message: String)InContext(label: String)InRange(lower: Char, upper: Char)expectation_eqreferences: Bool, Expectation
def expectation_eq(left: Expectation, right: Expectation) -> Bool
merge_contextsdef merge_contexts(left: List[String], right: List[String]) -> List[String]
merge_errorsreferences: Error
def merge_errors(left: Error, right: Error) -> Error
merge_expectationsreferences: Expectation,
List
def merge_expectations(left: List[Expectation], right: List[Expectation]) -> List[Expectation]
push_contextdef push_context(err: Error, ctx: String) -> Error
replace_expecteddef replace_expected(err: Error, expected_label: String) -> Error