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


Groups > comp.compilers > #867

Re: parsing bibtex file with flex/bison

From Rudra Banerjee <bnrj.rudra@gmail.com>
Newsgroups comp.compilers
Subject Re: parsing bibtex file with flex/bison
Date 2013-03-07 11:20 +0000
Organization A noiseless patient Spider
Message-ID <13-03-006@comp.compilers> (permalink)
References <13-03-003@comp.compilers> <13-03-004@comp.compilers>

Show all headers | 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