read
[ (in-port+(() read U eof)) [ location [ boolean [
integer] ] ] ]
( ( read U eof) )
When invoked, the reader returns a thunk. This thunk is repeatedly invoked to obtain a series of read objects until an eof is returned. The names and the functionality of the optional arguments to the reader, in turn, are:
Default: (current-input-port).
Default: default-initial-location.
#!
, then the reader will
treat the first line as a comment. (This comment can span multiple
lines if each preceding line ends in a \
before the newline.)
Default: #t.
NOTE: It is an error to perform read-char on any port passed to the reader, since this may interfere with its operation.
structurize-syntax
mixed zodiac [ marks] read
The first argument is a raw Scheme s-expression that has read objects in one or more positions (type mixed). The second argument is any object that is an instance of a sub-type of zodiac. The output is a read representation of the input. All Scheme s-expressions in the input are recursively converted to read forms, while read forms are left untouched (and are not traversed further). For all raw inputs that are converted into read objects, the origin, start and finish information is extracted from the second argument to structurize-syntax. The optional marks argument is used to give symbols and list forms their initial set of marks. Ordinary users may ignore this argument.
sexp->raw
read raw
The input is a member of the read hierarchy. The body is recursively translated into raw Scheme s-expressions. For symbols, the value in the object field, not in the orig-name field, is used.
syntax-car
( list + improper-list) read
syntax-cdr
( list + improper-list) read
syntax-null?
( list + improper-list) boolean
syntax-map
fun list [ list] read
Given a list or improper-list object, these procedures should be used to manipulate them. The user should never directly extract the contents of a list using the read-object accessor, since it can sometimes yield incorrect information. As with Scheme's map, syntax-map can take more than one argument (currently, at most two are allowed). There is no syntax-cons since that functionality is subsumed by structurize-syntax.