[Gedcom-parse-devel] Date parsing
Status: Beta
Brought to you by:
verthezp
From: Peter V. <Pet...@ad...> - 2001-12-28 21:03:11
|
I've added date parsing code to the gedcom parser (I've just checked it in). At first I thought to put it in the same parser as the rest of the gedcom file, but that appeared to be hard. I would have needed to separate the date tokens in the gedcom lexer, making the lexer and its use in the parser much bigger. Anyway, it is better to keep the two levels (overall syntax and syntax of the line values) separate. As a consequence, the date parser can be called separately, via gedcom_parse_date, declared in include/gedcom.h (Perry, this might be useful for you in LifeLines - the date struct uses some of the ideas that you wrote in one of your earlier mails to me). Note that I haven't tested it too much ('make check' works...) I think I'll write some docs now... Cheers, Peter. -- =================================================================== Peter Verthez Software engineer Email at work: mailto:Pet...@al... at home: mailto:Pet...@ad... WWW: http://gallery.uunet.be/Peter.Verthez =================================================================== Smith & Wesson The original point and click interface... |