Node:Scheme Read, Next:, Previous:Scheme Syntax, Up:Read/Load/Eval

28.2 Reading Scheme Code

read [port] Scheme Procedure
scm_read (port) C Function
Read an s-expression from the input port port, or from the current input port if port is not specified. Any whitespace before the next token is discarded.

The behaviour of Guile's Scheme reader can be modified by manipulating its read options. For more information about options, See User level options interfaces. If you want to know which reader options are available, See Reader options.

read-options [setting] Scheme Procedure
Display the current settings of the read options. If setting is omitted, only a short form of the current read options is printed. Otherwise, setting should be one of the following symbols:
Display the complete option settings.
Like help, but also print programmer options.

read-enable option-name Scheme Procedure
read-disable option-name Scheme Procedure
read-set! option-name value Scheme Procedure
Modify the read options. read-enable should be used with boolean options and switches them on, read-disable switches them off. read-set! can be used to set an option to a specific value.

read-options-interface [setting] Scheme Procedure
scm_read_options (setting) C Function
Option interface for the read options. Instead of using this procedure directly, use the procedures read-enable, read-disable, read-set! and read-options.