Expand description
The BibTeX parser entry point and its output type.
parse runs the pipeline: lex → [grammar::parse] (the recursive
descent, which emits events + errors) → [build_tree] (the green tree).
Syntax errors ride a side channel and never abort the parse.
Re-exports§
pub use crate::SyntaxError;
Structs§
- Parse
- A parsed
.bibfile: the green tree plus any syntax errors gathered alongside it. Errors never abort the parse.
Functions§
- parse
- Parse BibTeX/BibLaTeX source into a lossless CST.
- reconstruct
- Parse
inputand render the CST back to source. By the losslessness invariant this always equalsinput.