Re: parsing bibtex file with flex/bison

Rudra Banerjee <bnrj.rudra@gmail.com>
Thu, 07 Mar 2013 11:20:11 +0000

          From comp.compilers

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)
| List of all articles for this month |

From: Rudra Banerjee <bnrj.rudra@gmail.com>
Newsgroups: comp.compilers
Date: Thu, 07 Mar 2013 11:20:11 +0000
Organization: A noiseless patient Spider
References: 13-03-003 13-03-004
Keywords: parse, comment
Posted-Date: 07 Mar 2013 21:57:21 EST

> [Quite right. The lexer would recognize them in chunks and the
> parser, which uses a pushdown automaton, puts them together. Or the
> other usual approach is a kludge with code in the lexer to count the
> braces and set start states that control what's returned. -John]
>
Hi John and Evangelos,
Thanks for your comments.
I am new in this parsing business, and may not ever need it once this
project is over(personal project, for fun).
According to your comments, can you kindly help me in one thing:


  I *NEED* to parse the bibtex file. So, is flex+bison is the best option
I have or am I already in a wrong way?


If I am in right path, I don't mind learning, but if there is any
alternative, please suggest(oh...its not btparse I am looking for)
[I see perl BibTeX::Parser, python https://launchpad.net/pybtex/,
and java https://code.google.com/p/javabib/. Unless you really really
need your parser to be written in C, I'd start with one of those. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.