On 12 Aug 1999 10:15:59 CDT, the world broke into rejoicing as
Rob Browning <[EMAIL PROTECTED]>  said:
> [EMAIL PROTECTED] writes:
> 
> > The plan is *not* to have this persist for any great period of time;
> > it is, rather to build the whole set of transactions on the Scheme
> > side and push them in at once.
> 
> OK, but then why have the c-pointers at all?  Why not build a full
> scheme data sctructure representing the properly massaged QIF data,
> and then, once you're happy with it, hand that over to a routine that
> traverses it, creating the C-side data structures as it goes?
> Basically doing the same thing that the IO routines have to do when
> reading from disk.

Actually, that's precisely the intent.

I've got the Scheme structure that represents the massaged QIF data.

What I'm writing is the routine to traverse it, generating the GnuCash
data.

> Further, if you're careful, your traversal routine could be the same
> one we need to be able to read back in our scheme-form, text-format
> data file.  The only difference would be that when reading from disk,
> the form reader can be incremental since (as I recall) the scheme file
> data format is something like:
> 
>   (account list)
>   (transaction (split) (split) (split))
>   (transaction (split) (split))
>   ...
> 
> And when dealing with your QIF translation structure, you'll be
> handing the function a giant list of these items (or similar).  You
> could probably handle both cases with two different wrapper (input)
> functions to the same underlying parser function.
> 
> Bad idea?

Not at all.  Not at all.

I am definitely keeping in mind the thought that this makes it trivial
to create a "text-based dumper/re-reader" that would provide the
widely-desired text form of the output.
--
Entia non sunt multiplicanda sine necessitate.
[EMAIL PROTECTED] <http://www.ntlug.org/~cbbrowne/lsf.html>
----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to