Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #867

Re: parsing bibtex file with flex/bison

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 <bnrj.rudra@gmail.com>
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> (permalink)
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

Show key headers only | View raw


> [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]

Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

parsing bibtex file with flex/bison bnrj.rudra@gmail.com - 2013-03-04 15:48 -0800
  Re: parsing bibtex file with flex/bison Evangelos Drikos <drikosev@otenet.gr> - 2013-03-06 13:45 +0200
    Re: parsing bibtex file with flex/bison Rudra Banerjee <bnrj.rudra@gmail.com> - 2013-03-07 11:20 +0000
      Re: parsing bibtex file with flex/bison Rudra Banerjee <bnrj.rudra@gmail.com> - 2013-03-17 00:18 +0000
        Re: parsing bibtex file with flex/bison Torsten Eichstädt <torsten.eichstaedt@FernUni-Hagen.de> - 2013-03-25 13:41 +0100
  Re: parsing bibtex file with flex/bison glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2013-03-08 03:59 +0000

csiph-web