Expand description
Lisbeth-error
A dead-simple error type for the lisbeth parser infrastructure.
The types in this crate should be used in that order:
- an
ErrorReporteris created from input, - a
SpannedStris created from theErrorReporter, - parsing happens on that
SpannedStr, - tokens are produced, they store their position with a
Span, - when an error occurs, an error is reported with an
AnnotatedError, - this error is formatted by the
ErrorReporterdeclared previously, which returns aFormattedError, - the
FormattedErroris printed on the console.
An example of usage can be found in the handbook module.