read

Name

read -- Read an S-expression

Type: function

Synopsis

read(, expr);

Arguments

input-port

An instance of <input-port>. Default is the current input port.

Return Values

expr

The internal representation of the next expression on the port.

Description

This function is the RScheme expression parser. It converts a sequence of characters on port to the internal representation of an expression. The value returned can be as simple as a character and as complicated as a vector of almost arbitrary RScheme objects. The object returned depends on the sequence of characters, which must obey the syntactic conventions of RScheme.