Zafu/Text/Parse/Error

Zafu/Text/Parse/Error

source code:

Index

Types

Caret

type Caret

Constructors

Error

type Error

Constructors

Expectation

type Expectation

Constructors

Values

expectation_eq

references: Bool, Expectation

def expectation_eq(left: Expectation, right: Expectation) -> Bool

merge_contexts

references: List, String

def merge_contexts(left: List[String], right: List[String]) -> List[String]

merge_errors

references: Error

def merge_errors(left: Error, right: Error) -> Error

merge_expectations

references: Expectation, List

def merge_expectations(left: List[Expectation], right: List[Expectation]) -> List[Expectation]

push_context

references: Error, String

def push_context(err: Error, ctx: String) -> Error

replace_expected

references: Error, String

def replace_expected(err: Error, expected_label: String) -> Error