Final SRFI 233: INI files Arthur A. Gleckler (13 Oct 2022 23:38 UTC)
Re: Final SRFI 233: INI files Dr. Arne Babenhauserheide (14 Oct 2022 19:42 UTC)
Re: Final SRFI 233: INI files John Cowan (15 Oct 2022 03:55 UTC)
Re: Final SRFI 233: INI files Arthur A. Gleckler (18 Oct 2022 19:50 UTC)
Re: Final SRFI 233: INI files Arthur A. Gleckler (23 Oct 2022 03:30 UTC)
Re: Final SRFI 233: INI files John Cowan (26 Oct 2022 20:28 UTC)
Re: Final SRFI 233: INI files Arthur A. Gleckler (27 Oct 2022 03:44 UTC)
Re: Final SRFI 233: INI files John Cowan (27 Oct 2022 12:39 UTC)
Re: Final SRFI 233: INI files Arthur A. Gleckler (27 Oct 2022 15:25 UTC)
Re: Final SRFI 233: INI files John Cowan (28 Oct 2022 09:57 UTC)

Re: Final SRFI 233: INI files Dr. Arne Babenhauserheide 14 Oct 2022 19:11 UTC
Hello,

Thank you for your work on the ini-reader. This looks very useful!

Can you add to the example the code to actually create this list?

Something like:

;; from https://github.com/scheme-requests-for-implementation/srfi-233/blob/main/srfi-233-test.scm
(define (read-to-list generator)
  (let loop ((lst '()))
    (define entry-lst (generator))
    (cond
     ((eof-object? entry-lst)
      (reverse lst))
     (else (loop (cons entry-lst lst))))))

(let* ((port (open-input-file "EXAMPLE.ini"))
       (generator (make-ini-file-generator port)))
      (read-to-list generator))

And maybe reference the tests for more examples?

Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de