Module recovery

Source
Expand description

Types and traits that facilitate error recovery.

“Do you find coming to terms with the mindless tedium of it all presents an interesting challenge?”

Structs§

NestedDelimiters
See nested_delimiters.
Recovery
A parser that includes a fallback recovery strategy should parsing result in an error.
SkipParser
See skip_parser.
SkipThenRetryUntil
See skip_then_retry_until.
SkipUntil
See skip_until.

Traits§

Strategy
A trait implemented by error recovery strategies.

Functions§

nested_delimiters
A recovery strategy that searches for a start and end delimiter, respecting nesting.
skip_parser
A recovery mode that applies the provided recovery parser to determine the content to skip.
skip_then_retry_until
A recovery mode that simply skips to the next input on parser failure and tries again, until reaching one of several inputs.
skip_until
A recovery mode that skips input until one of several inputs is found.