Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!usenet.stanford.edu!news.iecc.com!.POSTED!nerds-end From: Rudra Banerjee Newsgroups: comp.compilers Subject: Re: parsing bibtex file with flex/bison Date: Thu, 07 Mar 2013 11:20:11 +0000 Organization: A noiseless patient Spider Lines: 19 Sender: johnl@iecc.com Approved: comp.compilers@iecc.com Message-ID: <13-03-006@comp.compilers> References: <13-03-003@comp.compilers> <13-03-004@comp.compilers> NNTP-Posting-Host: news.iecc.com Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: leila.iecc.com 1362711441 29824 64.57.183.58 (8 Mar 2013 02:57:21 GMT) X-Complaints-To: abuse@iecc.com NNTP-Posting-Date: Fri, 8 Mar 2013 02:57:21 +0000 (UTC) Keywords: parse, comment Posted-Date: 07 Mar 2013 21:57:21 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:867 > [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]