We have a preliminary parser that uses lex & yacc (I'll forward it to you
off-list since the library is about 400k). I haven't gotten too far with
integrating it yet, mainly because we'll need somewhere to put the data
after we read it from the GEDCOM.
Yeah, the date class isn't the prettiest; it's mostly my fault, but it
seems like you get the idea of where I wanted to go with it. I seem to be
better at writing algorithms and design specs than actual code, mostly
because I'm out of practice. Now that I'm getting the hang of coding on a
large project at work, it's getting a bit easier to read and code.
Did you get a chance to review the proposed DB schema, ERDs and the
comments about them yet? Also, did you get a SourceForge login yet so I
can set you up with write access to CVS?
--
Sean Lamb
Chief Webmaster, SCWD, NMRA --- http://www.scwd-nmra.org
Historian and Webmaster, Capitol City "N"Gineers ---
http://www.msn.fullfeed.com/~slambo/capcity.htm
Madison Linux User Group --- http://www.madisonlinux.org
On Thu, 15 Jun 2000, Jeremy A Erwin wrote:
>
> I am slowly going over the code, trying to find out what portions I
> could add to. I have written a genealogy program before--it never was
> completed due to realiazation that GUIs (on windows) weren't my forte. I
> have no idea where the source code went. However, if I remember correctly,
> it broadly consisted of two STL maps, each keyed to an integer key. These
> maps contained Individual and Family records. In other words, I took the
> GEDCOM structure literally.
>
> I have several comments and questions.
>
> What is currently being used for the parser? Is it based on YACC/bison? Is
> there preliminary code for this?
>
> The calender code looks like a bit of a mess. I realize that it has been
> converted from C. I would add support for proper C++ strings... for one
> thing.
>
> In my older program, I attempted to use julian days exclusively,
> converting on the fly to the appropriate calender. As I recall, I had a
> precison modifier to suppress the day and month, when appropriate. The
> biggest problem was dealing with the "between" codeword in gedcoms.
>
> It might be appropriate to use inheritance, such as:
>
> class genericdate
> {
> ...
> protected:
> long julian_day;
> ...
> }
>
> class gregorian_date: public generic_date{..}
> class hebrew_date: public generic_date{..}
>
> Hmm...
>
> Jeremy
>
>
> _______________________________________________
> Genes-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/mailman/listinfo/genes-devel
>
>
_______________________________________________
Genes-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/genes-devel