home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,199 of 2,753   
   glen herrmannsfeldt to bnrj.rudra@gmail.com   
   Re: parsing bibtex file with flex/bison   
   08 Mar 13 03:59:36   
   
   From: gah@ugcs.caltech.edu   
      
   bnrj.rudra@gmail.com wrote:   
   > I want to parse bibtex file using flex/bison. A sample bibtex is:   
   > @Book{a1,   
   > author="amook",   
   > Title="ASR",   
   > Publisher="oxf",   
   > Year="2010",   
   > Add="UK",   
   > Edition="1",   
   > }   
      
   (snip)   
      
   You might try writing bibtex macros that would parse them, then   
   write them out in an easier to parse by you form.   
      
   If you are only doing it once, you don't need the full syntax that   
   bibtex allows, but only what yours use. That might allow for a   
   simpler parser.   
      
   I presume, for example, that TeX macros could be used in the   
   bibtex file, which you would otherwise have to parse.   
      
   -- glen   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca