From: Daniel Carrera Date: 2004-01-23T06:27:45+09:00 Subject: Re: BibTeX parser On Fri, Jan 23, 2004 at 06:08:37AM +0900, Mauricio Fern�ndez wrote: > Looks like you're doing the parser by hand... Yes, because I am a parser-newbie and I don't know better. > wouldn't it be easier with, say, racc? As for the lexer [snip] What's racc? Do you have a link? What's a lexer? Where can I learn how to make good parsers? I'd really like to do this right. > creating a grammar to handle this should be fairly easy. Beautiful! I like easy. :-) > Another advantage is that you could build an AST and use it to represent > the data. I'll also need a link where I can learn what an AST is. > but in my past experience I found it to be too buggy :-( Buggy is bad. I'll stick to something reliable. > mmm I guess Coco/Rb could be a good option too, since you also get a > lexer, and LL(1) should be enough for this. Links for Coco/Rb? Thanks for all the help! I just *knew* I was doing something wrong. Thanks for pointing me the right direction. I will do a google search for "lexer", "grammar" and the other things you mentioned and I didn't understand. But if you have good links for me I'd love to get them. Thanks again. Cheers, -- Daniel Carrera | No trees were harmed in the generation of this e-mail. PhD student. | A significant number of electrons were, however, severely Math Dept. UMD | inconvenienced.