Re: The new GEDCOM parser

[email protected] (Ron Savage) Tue, 06 Nov 2012 18:14:56 +1100
Newsgroups perl.gedcom
Message-ID <[email protected]>
Hi Jeremy

On 06/11/12 17:54, Jeremy Slade wrote:
> You seem to be mixing two paradigms here: a stream parsing engine
> (having all the callbacks per entity) and a document model builder. I
> recommend to focus on making a solid GEDCOM stream parser (handling
> UTF-8, well-defined grammar). There are many applications that don't
> need to hold all the data in memory.
>
> Once you have a solid *parser*, it's another matter to build object
> models on top of that. The parser is universal functionality. Defining a
> single object model that all consumers will be happy with is an
> impossible task, so you'll be much better served in separating them.

Agreed.

I've tried to clarify that with my last post:

 > I should say that I think storing a GEDCOM file's content, sort of
 > literally, in a tree ought to work, because of the nested nature of
 > the defined structure of such file.
 >
 > Creating another data structure to represent the linkage between
 > people, etc will be a separate issue.

-- 
Ron Savage
http://savage.net.au/
Ph: 0421 920 622