sigildocs

(scheme read)

(scheme read) - R7RS Read Library

Parse S-expressions from input ports.

See: R7RS Small §6.13.2

Exports

readprocedure

Read one S-expression from a port.

Parses and returns the next complete Scheme value. Returns the end-of-file object when the port is exhausted.

;; File contains: (1 2 3) "hello"
(read port)    ; => (1 2 3)
(read port)    ; => "hello"
(read port)    ; => #<eof>
(eof-object? (read port))  ; => #t

Re-exported from (sigil io)