Expand description
Single-file BibTeX semantic analysis.
builder::build collects entries, @string definitions, and uses in one
CST walk. A resolve pass then marks duplicate cite keys and unresolved uses.
BibTeX has file-global rather than lexical scope. Cross-file resolution and incremental caching belong to the project layer.
Re-exports§
pub use entry::Entry;pub use entry::StringDef;pub use entry::StringUse;pub use signature::BibFieldDb;pub use signature::EntrySig;pub use signature::FieldCategory;pub use signature::FieldSig;pub use signature::RequiredField;pub use signature::builtin;pub use builder::MONTH_MACROS;
Modules§
- builder
- Builds the bib
Modelin a single CST walk, then a resolve pass. - entry
- Data types collected by the bib
semanticmodel: regular entries,@stringdefinitions, and@stringuses. The bib analog ofcrate::semantic::label— plain records keyed by position in the model’s vectors, with the resolve-pass flags (duplicate,resolved) filled in bysuper::builder. - signature
- The built-in BibTeX field/entry signature database: which fields each entry
type requires/allows, and a coarse category per field (name list, date,
verbatim-ish, or plain literal). The bib analog of
crate::semantic::signature. Meaning is assigned here rather than in the parser.
Structs§
- Model
- A file’s regular entries,
@stringdefinitions, and@stringuses.