Skip to main content

Module semantic

Module semantic 

Source
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 Model in a single CST walk, then a resolve pass.
entry
Data types collected by the bib semantic model: regular entries, @string definitions, and @string uses. The bib analog of crate::semantic::label — plain records keyed by position in the model’s vectors, with the resolve-pass flags (duplicate, resolved) filled in by super::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, @string definitions, and @string uses.