title: Writing BibTex parser
body: <p>How should I start writing a parser for <a href="http://en.wikipedia.org/wiki/BibTeX" rel="nofollow noreferrer">BibTex</a> files. As the initial design I see following steps.</p>
  
  <ol>
  <li>List down grammar</li>
  <li>Build a tokenizer</li>
  <li>Do parsing of token stream against grammar</li>
  </ol>
  
  <p>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.</p>
  
  <p>(please point if there are any existing open source C# or VB.NET BibTex parsers.)</p>