aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-09-07 18:44:18 -0400
committerGravatar Peter McGoron 2024-09-07 18:44:18 -0400
commit42cd5a067863771a7ada5c166f34ecada1275a69 (patch)
tree3e3cf52f70134973c68082512cc43ee55476fac9
parentReadtable: fix propagation of default handlers in trie paths (diff)
readtable: add documentation for PUSH->READ
-rw-r--r--read.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/read.scm b/read.scm
index 8724e3c..a138041 100644
--- a/read.scm
+++ b/read.scm
@@ -33,6 +33,12 @@
(lambda ()
(read-char port))))
+;;; READ:
+;;;
+;;; (POS): Return (LIST FILENAME LINE-NUMBER OFFSET).
+;;; (READ): Read the next character in the stream. Returns #F on EOF.
+;;; (PUSH CHAR): Push CHAR such that it will be the next character read
+;;; when (READ) is called.
(define port->read
(lambda (read-function filename)
(let ((line-number 1)