nom-bibtex
A feature complete BibTeX parser using nom.
nom-bibtex can parse the four differents types of entries listed in the BibTeX format description:
- Preambles which allows to call LaTeX command inside your BibTeX.
- Strings which defines abbreviations in a key-value format.
- Comments.
- Bibliography entries.
Example
extern crate nom_bibtex;
use *;
const BIBFILE_DATA: &str = r#"@preamble{
"A bibtex preamble"
}
@Comment{
Here is a comment.
}
Another comment!
@string ( name= "Charles Vandevoorde")
@string (github = "https://github.com/charlesvdv")
@misc {my_citation_key,
author= name,
title = "nom-bibtex",
note = "Github: " # github
}
"#;