Related articles |
---|
parsing bibtex file with flex/bison bnrj.rudra@gmail.com (2013-03-04) |
Re: parsing bibtex file with flex/bison drikosev@otenet.gr (Evangelos Drikos) (2013-03-06) |
Re: parsing bibtex file with flex/bison bnrj.rudra@gmail.com (Rudra Banerjee) (2013-03-07) |
Re: parsing bibtex file with flex/bison gah@ugcs.caltech.edu (glen herrmannsfeldt) (2013-03-08) |
Re: parsing bibtex file with flex/bison bnrj.rudra@gmail.com (Rudra Banerjee) (2013-03-17) |
Re: parsing bibtex file with flex/bison torsten.eichstaedt@FernUni-Hagen.de (Torsten =?UTF-8?B?RWljaHN0w6RkdA==?=) (2013-03-25) |
From: | glen herrmannsfeldt <gah@ugcs.caltech.edu> |
Newsgroups: | comp.compilers |
Date: | Fri, 8 Mar 2013 03:59:36 +0000 (UTC) |
Organization: | Aioe.org NNTP Server |
References: | 13-03-003 |
Keywords: | parse |
Posted-Date: | 08 Mar 2013 10:39:18 EST |
bnrj.rudra@gmail.com wrote:
> I want to parse bibtex file using flex/bison. A sample bibtex is:
> @Book{a1,
> author="amook",
> Title="ASR",
> Publisher="oxf",
> Year="2010",
> Add="UK",
> Edition="1",
> }
(snip)
You might try writing bibtex macros that would parse them, then
write them out in an easier to parse by you form.
If you are only doing it once, you don't need the full syntax that
bibtex allows, but only what yours use. That might allow for a
simpler parser.
I presume, for example, that TeX macros could be used in the
bibtex file, which you would otherwise have to parse.
-- glen
Return to the
comp.compilers page.
Search the
comp.compilers archives again.