| Did you know ... | Search Documentation: |
| Pack bibtex -- prolog/bibtex_dcg.pl |
DCG rules that can parse BibTeX elements.
In this text, a pseudo-EBNF syntax is used to explain some structures.
The following illustrates a BibTex entry and its format. The name of each element is used as a DCG rule's predicate name.
"@" name "{" label ","
field ","
field ","
...
"}"
Each field's format is as follows:
key "= {" value "},"
Fields like author and keywords have their own format. DCG rules for them are included here. However, consult the bibtex_fields library for more information.
The author field format is as follows:
`author "and" author "and" author "and" ...`
There are two possible formats for each author's name:
Keywords are phrases written in the article. There are other fields that use the same syntaxs for user-defined keywords.
The format is the same:
`a_phrase "," a_phrase "," ...`
The keywords separators supported are "," and ";". They can be mixed.
entry(Name: term, Label: string, LstField: list).field(Key: atom, Value: string).
@author Gimenez, Christian
@license GPLv3field(+Key: atom, +Value: string).