tags:

views:

69

answers:

1

How should I start writing a parser for BibTex files. As the initial design I see following steps.

  1. List down grammar
  2. Build a tokenizer
  3. Do parsing of token stream against grammar

We also need some error mechanism, so the users uploading bibtex files can know line numbers where is the error in their BibTex files. I am looking for community opinion to target this problem.

(please point if there are any existing open source C# or VB.NET BibTex parsers.)

A: 

There are many tools available to assist you with this, such as ANTLR or the GOLD Parsing System. I usually use the latter to create my parser grammars.

Lucero