defmodule BibtexParser do @doc """ Given a string containing bibtex content, returns a list of entries found in this string. ## Examples iex> BibtexParser.parse_string("@incollection{foo, title={Bar}") [%{label: "foo", tags: [title: "Bar"], type: "incollection"}] """ def parse_string(str) do {entries, _} = BibtexParser.Parser.parse_entries(str) entries end @doc """ Given a string containing bibtex content, parses the string and then runs checks on it to verify if the content is proper bibtex. These checks can be both structural (e.g., empty fields) and semantic (e.g. required fields). Each error returned from the function is in the form of `{