Expand description
The local BibTeX parse error type, BibParseError, and its
BibParseErrorKind classification.
parse_bibtex returns this small local error (per
issue #66) so the parser stays self-contained, but it is not a parallel
bad-document pipeline: it bridges into the standard mos-core diagnostics
surface. BibParseError::to_diagnostic and From<BibParseError> for CoreError map it onto the MOS0043 code: carrying the byte offset as a
span, so a malformed .bib flows through the same Diagnostic path as
every other compiler error, without callers special-casing mos-bib.
Structs§
- BibParse
Error - A recoverable BibTeX parse error: a
BibParseErrorKindplus the byte offset into the original input where the problem was detected.
Enums§
- BibParse
Error Kind - What went wrong while parsing BibTeX. Paired with a byte offset inside a
BibParseError.