summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-24 18:29:53 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-24 18:29:53 -0700
commit0720e906157d8e51ada26b2bc81ce26a262c8964 (patch)
tree7523c5efab810d5fdced74ff31d077114da7d4b2 /txr.1
parent270c5dad176d7bd9add153392915dc562f92e48b (diff)
downloadtxr-0720e906157d8e51ada26b2bc81ce26a262c8964.tar.gz
txr-0720e906157d8e51ada26b2bc81ce26a262c8964.tar.bz2
txr-0720e906157d8e51ada26b2bc81ce26a262c8964.zip
New strlist list input stream type.
* stream.c (struct strlist_in): New struct type. (strlist_in_stream_mark, strlist_in_get_line, strlist_in_get_char, strlist_in_unget_char, strlist_in_get_prop, strlist_in_get_error_str): New static functions. (strlist_in_ops): New static struct. (make_strlist_input_stream): New function. (stream_init): Register make-strlist-input-stream intrinsic. * stream.h (make_strlist_input_stream): Declared. * txr.1: Documented make-strlist-input-stream. Call fill_stream_ops on new strlist_in_ops struct to fill in common default stream operations.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.112
1 files changed, 12 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 6fe6f5de..e77dcb03 100644
--- a/txr.1
+++ b/txr.1
@@ -35702,6 +35702,18 @@ this stream object read successive byte values obtained by encoding
into UTF-8. Character read operations are not supported, and neither
are output operations.
+.coNP Function @ make-strlist-input-stream
+.synb
+.mets (make-strlist-input-stream << list )
+.syne
+.desc
+The
+.code make-strlist-input-stream
+function produces an input stream object based on a list of strings.
+Through the character read operations invoked on this stream,
+the list of strings appears as a list of newline-terminated lines.
+Output operations and byte operations are not supported.
+
.coNP Function @ make-string-output-stream
.synb
.mets (make-string-output-stream)