Parsers with Python

D

Daniel Carrera

Greetings all,

I am a new subscriber to this list, and a novice Python user. Is this the
correct place to ask for advice on Python-programming?

I want to write a parser for BibTeX. A BibTeX file is a collection of
entries that look like this:

@book {Daniel04,
title = "My Title",
publisher = {Some publisher Inc.},
volume = 2,
year = 2004
}


Can anyone recommend a parser generator for Python? I have been
programming for a few years, but I have never made a parser. I only have
a vague notion of what a lexer and a grammar are. Is there a resource
that you might recommend?

Thanks you for your time.

Cheers,
 
A

A.M. Kuchling

I want to write a parser for BibTeX. A BibTeX file is a collection of
entries that look like this:

You should probably look at Greg Ward's btOOL
(http://www.gerg.ca/software/btOOL/), which includes C and Perl parsers for
BibTeX. Unfortunately the software predates Greg's use of Python, so
there's no Python support.

--amk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top