# HG changeset patch # User Linus Björnstam # Date 1568834850 -7200 # Wed Sep 18 21:27:30 2019 +0200 # Node ID 5d7a4b25ecb8fce15e241e86c7849a54ca293744 # Parent 093f103d011a49755e44cfda49f31baa2331e802 There is already a guile-dsv. A very pretty one indeed. Use that instead. diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -1,10 +1,15 @@ -# Guile-dsv +# Guile-vsd The delimiter-separated values format is a superset of CSV (although headers are not currently supported). This implements a DSV parser for guile with a streaming interface and a more convenient port-exhausting or string-reading interface. +# If you want it properly done, there is a better library: + +Look here. Much better. Modularized. Documented. Much more finite state automata: +https://github.com/artyom-poptsov/guile-dsv + # Documentation - (import (dsv)) + (import (vsd)) (define file (open-input-file "csv.csv")) ;; These are all the available options for the procedures in this library. @@ -44,7 +49,8 @@ Re-add trimming. -Enforce length of rows. +Enforce length o +f rows. Change the interface to allow composing with call-with-input-xxxx and the likes. diff --git a/dsv-impl.scm b/vsd-impl.scm rename from dsv-impl.scm rename to vsd-impl.scm diff --git a/dsv.scm b/vsd.scm rename from dsv.scm rename to vsd.scm --- a/dsv.scm +++ b/vsd.scm @@ -1,4 +1,4 @@ -(define-module (dsv) +(define-module (vsd) #:export (dsv->list dsv-file->list make-dsv-reader)) -(include "dsv-impl.scm") +(include "vsd-impl.scm")