Re: parsing bibtex with GKeyFile parser



On 6 September 2012 13:01, Rudra Banerjee <bnrj rudra yahoo com> wrote:
I am thinking of possibility of parsing a bibtex file with gkeyfile
parser. bibtex has the structure like:
@Book{a,
        Author="b and q and r, s ",
        Editor="c",
        Title="d",
}

GKeyFile syntax is not much like that. You could probably use GScanner
to do the lexing and some sort of simple driver function for the
syntax, but I've not tried.

flex and bison would be the standard C way of making something like this.

Alternatively, google reveals a huge number of bibtex parsers for
every language you can think of, perhaps one of those could be reused.

John



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]